[Sderby] Procmail & Spam assasin

James Gibbon sderby at mailman.lug.org.uk
Tue Jun 24 19:46:01 2003


Mike Hemstock wrote:
>
> I would also like to eliminate the 8,999,999 spam mails that are
> cluttering up my mail box.  Someone suggested Spam assasin.  I've
> called John "Skull crusher" Jones and Fred "Axe Murderer" Hawkins,
> but neither seem willing to help!  Does anyone have any experience
> of Assasinating Spam?
> 

Yes, I've been using spamassassin for a few weeks now and am very,
very pleased with it.  It's been very effective - straight 'out of
the box', it was filtering out approx 97% of my SPAM with no false
positives.  Since I fine-tuned it about 10 days ago, it has caught
every single spam mail but one, from a few hundred, again with no
false positives so far.

It's very easy to install and very easy to plug into procmail,
here's the tail end of my.procmailrc:

# everything from here is checked for spam
:0 wf
| /usr/bin/spamassassin

:0 w :evil/$LOCKEXT
* ^X-spam-status: Yes, hits=[0-9][0-9]
evil/.

:0 w :spam/$LOCKEXT
* ^X-spam-status: Yes
spam/.

:0 w:jg/$LOCKEXT
* ^TO_james.gibbon
| rcvstore +jg

# inbox gets everything else
:0 w:inbox/$LOCKEXT
| rcvstore +inbox

.. I sort list mail into folders first, so that only stuff 
that's addressed to me personally or addressed to an unknown 
recipient is checked for spam.

You don't need to use two separate spam folders as I have, it
was just something I came up with to differentiate low-scoring
spam from high-scoring spam - to help with checking for false 
positives.

Some helpful notes on spamassassin via procmail here at the exmh
wiki, a small part of which I contributed myself:

http://www.beedub.com/cgi-bin/wiki.cgi/29

Cheers
James