Creating custom Spamassassin rules

example:

body            Job_Scam_Rule  /craftmediadepartment|LOUWILLE ENGINEERING|ABLE TEXTILE DEPARTMENT/
describe        Job_Scam_Rule  “Spam is not allowed”
score           Job_Scam_Rule  2000 2000 2000 2000

or

header LOCAL_ED_SUBJECT      Subject =~ /\bED\b/
score LOCAL_ED_SUBJECT       40

needs to go in the users user_prefs file if allow_user_rules is enabled in local.cf. Otherwise can be done on a serverwide basis in /etc/mail/spamassassin/local.cf or similar

manual:

http://wiki.apache.org/spamassassin/WritingRules

You can leave a response, or trackback from your own site.

Leave a Reply