Monthly Archives: October 2007

Removing mails spam-scored over 10

I am using SpamAssassin 3.1.x on Linux.
Now, all mails with spam score over five (5) are marked as spams (so simple configuration). Further more, I would like to remove permanently all mails with score over ten (10).

Here is content of /etc/procmailrc to do that:

DROPPRIVS=yes
MAX_SCORE=10.00
MIN_SCORE=5.00
:0fw
| /usr/bin/spamc
:0
* ^X-Spam-Status:.*score=\/[0-9\.]+
{
## if spam score is > MAX_SCORE, trash it
:0
* $ -${MAX_SCORE}^0
* $ ${MATCH}^0
/dev/null
## else if spam score is > MIN_SCORE, send it to spam folder
:0E:
* $ -${MIN_SCORE}^0
* $ ${MATCH}^0
$DEFAULT
}

css.php