Basic procmail configuration with spamassassin filtering

I've used this extremely basic procmail configuration a million times, and it's a great start for any server configuration. It passes e-mails through spamassassin (if they're smaller than 256KB) and then filters any e-mail marked as spam to /dev/null:

LOGFILE=/var/log/procmail.log
DROPPRIVS=yes

:0fw
| /usr/bin/spamc

:0
* ^X-Spam-Status: Yes
/dev/null

Of course, you can make this much more complicated with some additional customization.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/ .
© Major Hayden 2010.

Trackbacks/Pingbacks

  1. Recent Links Tagged With "procmail" - JabberTags

RSS feed for comments on this post , TrackBack URI

Leave a Reply