Results 1 to 2 of 2

Thread: [SOLVED] Help with custom spamassassin rule

  1. #1
    mdeneen is offline Active Member
    Join Date
    Jul 2007
    Posts
    45
    Rep Power
    8

    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

  2. #2
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. custom fields in outlook
    By galezer in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 03-03-2008, 09:45 AM
  2. Forwarded spam - a new headache
    By dwmtractor in forum Administrators
    Replies: 10
    Last Post: 11-30-2007, 03:16 PM
  3. Spamassassin Questions
    By carnold in forum Administrators
    Replies: 0
    Last Post: 07-24-2007, 04:02 PM
  4. Spamassassin: no Bayes testing performed
    By eombah in forum Administrators
    Replies: 7
    Last Post: 03-21-2007, 01:48 PM
  5. Per user spamassassin settings possible?
    By redhat in forum Administrators
    Replies: 1
    Last Post: 08-11-2006, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •