Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 06:41 AM
Active Member
 
Posts: 42
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
  #2 (permalink)  
Old 03-07-2008, 03:04 PM
Moderator
 
Posts: 1,010
Default

It appears you solved your own problem, so I won't try to get into it. One suggestion though, that a number of admins seem to prefer, is to make your own custom changes in local.cf rather than any of the other cf files. This is not necessary, as all cf files in the /opt/zimbra/conf/spamassassin path are read and implemented, but the advantage is that local.cf overrides any other file, so if you keep all your customizations there, you have only one file to backup and restore if your system blows up, or when you upgrade to a new version.

I say the latter of these two because all your spamassassin configuration files will be overwritten any time you upgrade Zimbra versions. Although you should backup your entire Zimbra database before any upgrade, I still prefer to restore only local.cf because I don't want to lose any other improvements that might be part of the upgrade in other files.

Cheers,

Dan
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0