Results 1 to 2 of 2

Thread: [SOLVED] Help with custom spamassassin rule

  1. #1
    Join Date
    Jul 2007
    Rep Power

    Question [SOLVED] Help with custom spamassassin rule

    I've added the following to

    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? was updated with the contents of my ".in" file.


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


    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 05:46 AM. Reason: possible alias issue

  2. #2
    Join Date
    Jul 2007
    San Jose, CA
    Rep Power


    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 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 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 because I don't want to lose any other improvements that might be part of the upgrade in other files.



Similar Threads

  1. custom fields in outlook
    By galezer in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 03-03-2008, 08:45 AM
  2. Forwarded spam - a new headache
    By dwmtractor in forum Administrators
    Replies: 10
    Last Post: 11-30-2007, 02: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