procmail
[Top] [All Lists]

Re: mysql & green/black list

2003-03-18 06:02:19


On Mon, 17 Mar 2003 23:49:46 -0800 Multimedia Fan 
<multimedia-fan(_at_)myrealbox(_dot_)com>
wrote:


# check against whitelist
:0
* ? ($FORMAIL -x From: -x Sender: -x Resent-From: | $FGREP -iqf
$whitelist)
${DEFAULT}

But when I try similar recipe for a blacklisted body filtering.

# Check against blacklist
:0B
* ? ($FGREP -if $blacklist)
/var/log/spam/test-spam


I'm wondering why you don't use the same type of test in both cases, especilly
since you know the first works?  Spammers addresses are going to be in the
headers, not the body. I can managed the majority of my mail with two rules.
(Although the catch the other 20%it takes several dozend more rules. :-)

#for the blacklist
* ? ($FORMAIL -x From: -x Sender: -x Reply-To: -x Received: | $FGREP -iqf
$SPAMMERS)

# for the whitelist
* ? ($FORMAIL -x From: -x Sender: -x Resent-From: | $FGREP -iqf $FRIENDS)

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