* Louis LeBlanc <leblanc+procmail(_at_)keyslapper(_dot_)org> [20011110 01:27]:
writing on the subject 'formail problems from ~/.procmailrc'
| I'm getting frustrated with the ever growing quantity of spam in my
| various inboxes. I tried Junkfilter, but it caught nothing except my
| FreeBSD list mail - all of it.
Louis,
Maybe I can save you some time that you can use to do other things;)
I've spent a good time working on a spam filter - referring to info
from all corners and as of now, I can say I am happy. All the spam I
get are 'bounced' back. I say 'bounced' because I keep a copy and always
look at them to see if there is a matching criteria I can use to further
refine my recipe. The other type of spam I get are those sent to my other
(old) e-mail addresses that I kinda must live with, but I have to allow
those. If I directed my recipe to /dev/null I'll only see 1 or 2 spam a
week and there is no risk of blocking the mailing lists, even CCs to the lists.
My recipe was concoted mostly from Timo Salmi's (http://www.uwasa.fi/~ts/)
All you have to do is define a greenlist and exempt it from the recipe. This
recipe also creates a blacklist and once an address is there, my main
.procmailrc
will respond with exit code 67.
[snip] ~/.procmailrc
###################################################################################################*
#The next extension (if you need it) is to create a "black.lst" file. This is a
file that contains #
#email addresses or domains that will always be considered spam, even if your
email address is on #
#the To: or Cc: line. This recipe can be thrown at the start of your
.procmailrc file: #
####################################################################################################
:0:spam.lock
* ? formail -x"From:" -x"From" -x"Sender:" | egrep -is -f $PMDIR/black.lst
# I could save them to SPAM but let me just bounce them
{
EXITCODE=67 HOST
}
[/snip]
I am attaching the first 100 lines of my .procmailrc and also my rc.spam. Those
may save you some
time in your endeavor to fight spam.
HTH
-Wash
--
/"\
Odhiambo Washington \ / ASCII Ribbon Campaign
Wananchi Online Ltd., X Against HTML Mail,
PO Box 10286, / \ HTML News Too, and
00100 NAIROBI, KE. MS WORD docs.
++
The ready availability of suicide, like sex and alcohol, is one of life's
basic consolations.
proc-louis
Description: Text document
rc.spam
Description: Text document