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:

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

Leave a Reply

Your email address will not be published. Required fields are marked *