* 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
Tom.
--
.^. .---------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | ID-Pro - http://id-pro.co.uk |
gilbertt(_at_)linuxbrit(_dot_)co(_dot_)uk |
^^-^^ '---------------------------------------------------------'
pgpoP8s9qNSo6.pgp
Description: PGP signature