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.

Printed from: http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/ .
© Major Hayden 2012.

Trackbacks/Pingbacks

  1. Recent Links Tagged With "procmail" - JabberTags

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this