procmail
[Top] [All Lists]

Re: spam filter ?

2000-09-15 15:03:23
On Fri, Sep 15, 2000 at 10:40:08PM +0000, Tom Gilbert wrote:
* Johannes Zellner (johannes(_at_)zellner(_dot_)org) wrote:
On Fri, Sep 15, 2000 at 08:57:48PM +0000, Tom Gilbert wrote:
* Johannes Zellner (johannes(_at_)zellner(_dot_)org) wrote:
Hello,

can someone give me a simple procmail recipe to filter
spam mails ? -- I've several addresses which are considered
to be spam. Ideally the recipe should
   1) save the spam to /dev/null

A more general way is this:

SPAMMERS=$HOME/.procmail/spammers
SPAM=/dev/null

:0:
* ? (formail -x From: -x Sender: -x Reply-To: -x Received: | fgrep -iqf 
$SPAMMERS)
$SPAM

Any email address found in ~/.procmail/spammers will be sent to $SPAM.
Parts of addresses will work too. A great way to kill lots of spam is to
just put aol.com in there ;-)

thanks. This seems to be just what I've looked for.

One more question:

do I need a /trailing/ .* ? -- E.g.

    * ^From:(_dot_)*bill(_at_)microsoft(_dot_)com(_dot_)*

to catch addresses like

    From: <bill(_at_)microsoft(_dot_)com>

or would it be sufficient to have

    * ^From:(_dot_)*bill(_at_)microsoft(_dot_)com

Using .spammers? Just echo "bill(_at_)microsoft(_dot_)com" >> 
~/.procmail/spammers

yes I know. This was just a general question, I've some more
procmail recipes ...

-- 
   Johannes

_______________________________________________
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>