Thanks for the reply Hawarden.
Fortunately I was able to figure out a really easy way to the spam using Postfix. I use the Postfix header_checks feature to filter out messages that have been marked as spam by spam assassin. Those messages are redirected to a spam mailbox but I can configure Postfix to discard those messages if I want.
Here's how to configure Postfix to automatically filter messages marked as spam, so the messages never hit the users' mailboxes:
Postfix main.cf file
Code:
header_checks = regexp:/etc/postfix/header_checks
Spam Assassin local.cf file
Code:
required_hits 8
report_safe 0
rewrite_header Subject SETSPAM
bayes_autolearn 1
bayes_auto_learn_threshold_nonspam 1
bayes_auto_learn_threshold_spam 5
whitelist_form *@mydomain.com
Postfix header_checks file
Restart Postfix and you're all set. If I wanted to simply discard all messages marked as spam, I could change my header_checks file to:
Code:
header_checks
/^Subject: SETSPAM/ DISCARD
Pretty cool huh?