Koozali.org formerly Contribs.org

Custom Spamassassin Rules Not Working: EMPTY_SUBJECT

Re: Custom Spamassassin Rules Not Working: MISSING SUBJECT RULE
« Reply #15 on: June 14, 2012, 05:48:18 PM »
CASE SOLVED:

To reiterate: Objective was to ban all 'Empty' Subject emails (emails with no textual components)
Why?: Because you can eliminate alot of junk/tainted/viri emails by doing so. 

To accomplish this task do the following:

1. mkdir -p /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf
2  cd /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf
3. pico -w /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf/20localscores

**add the following to the 20localscores file
header EMPTY_SUBJECT Subject =~ /^\s*$/
score  EMPTY_SUBJECT 20.0

4. signal-event email-update


** You can change the rule name (EMPTY_SUBJECT), file name (20localscores), and score (20) to anything you like as these are purely your preference.

 :-D
« Last Edit: June 15, 2012, 12:28:18 PM by bhay3s »