procmail
[Top] [All Lists]

Re: speaking of white lists...

2003-07-11 11:00:29
On Fri, 11 Jul 2003 10:19:33 -0400, Dragoncrest
<dragoncrest(_at_)voyager(_dot_)net> wrote:

      Anybody know how to white list this?  I want to be able to add 
something 
to this rule so that if the email comes from a given address it will 
automatically ignore the rest of this rule, or do I need to whitelist 
differently.  Here's the rule in question.

# This addition filters viruses
:0
* B ?? ^Content-type: (audio|application)
* B ?? 
name=.*\.(com|exe|zi|bat|scr|pif|wav|dat|mp3|bmp|mpg|hta|shs|vb[es]|ws[fh])\>
mail/viruses

      Now I'm not very familiar with white listing.  Would i want to white 
list 
just for this rule, or overall?  Either way, how would I do it?  Many thanks.




I have something similar, I added the following before the virus filter.



## Whitelisted domains.
:0
* ? ($FORMAIL -x From: -x Sender: -x Resent-From: | $FGREP -iqf
$domainwhitelist)
${DEFAULT}


Of course I define the $domainwhitelist  earlier in my procmailrc
domainwhitelist=/home/multimedia-fan/domainwhitelist


And in /home/multimedia-fan/domainwhitelist text file, domains are
listed one per line,  something like.

mydoamin.com
cisco.com


Hope this helps.




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>