* 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 ;-)
2) notify the sender that the mail is considered to be
spam and therefore beeing killed.
Not a good plan in general.
Tom.
--
.^. .---------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | ID-Pro - http://id-pro.co.uk |
gilbertt(_at_)linuxbrit(_dot_)co(_dot_)uk |
^^-^^ '---------------------------------------------------------'
pgpjv3hcZYaiW.pgp
Description: PGP signature