procmail
[Top] [All Lists]

Re: [Procmail]Simple Bozo-Filter Example?

1997-02-03 18:49:57
-----BEGIN PGP SIGNED MESSAGE-----

Hi Sebastian Bernheim!  I'm a UNIX administrator and I like to fight spam!
I was wondering if anyone uses procmail for a bozo-filter and if they
could email me a simple example.  Basically I want to keep a file with
a list of email addresses in my $HOME or .procmail directories called
.bozo (or the like) and have messages from email addresses in the .bozo
file automagically redirected to /dev/null (or possibly do something
else fun with them, like automatically email a complaint to root and
postmaster at their domain).
If anyone would like to volunteer a simple example I would be greatly
appreciative.

        Sure.

        This will reject e-mail from the softcell spammers:

:0
* ^From:.*softcell.net
# since they don't forge their e-mails
| $MAILDIR/forrep $MAILDIR/softcell.txt postmaster(_at_)softcell(_dot_)net \
root(_at_)softcell(_dot_)net gary(_at_)softcell(_dot_)net 
webmaster(_at_)ANAWAVE(_dot_)COM \
ssmith(_at_)ANAWAVE(_dot_)COM help(_at_)uunet(_dot_)uu(_dot_)net \
# calls forrep with the softcell.txt file that basically tells them
# to get bent, and the rest of the arguements are the addresses of
# their upstream contacts
| $FORMAIL -i "Subject: UCE REJECTED!!" \
# change the subject
- -I "BCC: $USER" | $SENDMAIL -oi -t
# BCC it to me so I can report it to SPAM-L

        You can get forrep, a shell script responder program which I
wrote, by sending an e-mail to dmuth+forrep(_at_)ot(_dot_)com(_dot_)  I used it 
awhile ago
to deal with an AOLer and it worked great!

        Regards,

- --
<Doug Muth>--<dmuth(_at_)ot(_dot_)com> - Spam me and die!
Think your homepage sucks?  You haven't seen http://www.ot.com/~dmuth yet!!
Anti-virus software and utils: | The Transformers fanfiction:|"Est Sularus|
http://www.ot.com/~dmuth/virus | http://www.ot.com/~dmuth/tf |oth Mithas!"|
- -=-= The only GOOD spammer is a DEAD spammer * http://www.vix.com/spam -=-=

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMvaUlh0LJlIsPN1JAQFtxAQAo6Juz2NJW9XNll5tshoPOib6X8RrMXxn
ffwsVmJ6pOw3bWKnR7FrVQ+AgRWB01q84qwNOEzd4iGuaVU+22K7kibfG9Ej95dE
andqwuPtdAqHC7rCPEy3UcwzSYkm3jXSs6nLICI1EZVmLcPDJALhX90/RmeQ1TVM
c6oNsMkQjzs=
=3PCy
-----END PGP SIGNATURE-----

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