View Single Post
  #1 (permalink)  
Old 03-07-2008, 06:41 AM
mdeneen mdeneen is offline
Active Member
 
Posts: 45
Question [SOLVED] Help with custom spamassassin rule

I've added the following to salocal.cf.in:

Code:
rawbody BLOGSPOT_****       /Real Men!.*Girls!.*blogspot\.com/i
describe BLOGSPOT_****  blogspot **** emails
score BLOGSPOT_**** 2.0

meta BLOGSPOT_BAT_**** (BLOGSPOT_**** && __THEBAT_MUA)
score BLOGSPOT_BAT_**** 5.0
and called zmamavisdctl restart as listed in the wiki. (__THEBAT_MUA is defined in the stock spamassassin rules.) My rules are either incorrect or not being called by zimbra. I've tested the rules with a sample email on a different install of spamassassin so I could use the --lint -D options and see what it was doing. This rule works with a standalone spamassassin.

Any ideas? Is "zmamavisdctl restart" not enough? salocal.cf was updated with the contents of my ".in" file.

EDIT:

The rules are working, but do not seem to be applying when the email is sent to an alias.

EDIT AGAIN:

The rules are working fine. The email I had forwarded me was from before I had applied the rules!

Last edited by mdeneen; 03-07-2008 at 06:46 AM.. Reason: possible alias issue
Reply With Quote