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</p> <p>:0fw | /usr/bin/spamc</p> <p>:0 * ^X-Spam-Status: Yes /dev/null Of course, you can make this much more complicated with some additional customization.
Read more →

Sort e-mail in Plesk with procmail

One of my biggest beefs with Plesk’s e-mail handling is the lack of server-side filtering. Plesk will only allow you to throw away e-mails marked as spam, but this won’t work for me since SpamAssassin marks some mails as spam that actually aren’t. If you set up filters in SquirrelMail or Horde, the filters will only work if you always log into the webmail interface to snag your e-mail. Luckily, you can do some fancy work with procmail to have the filtering done server-side.
Read more →