Results 1 to 7 of 7

Thread: [SOLVED] Anybody know how to change the Spam Assassin Score?

  1. #1
    void is offline Active Member
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    7

    Default [SOLVED] Anybody know how to change the Spam Assassin Score?

    I have been running SpamAssassin for years, but the way it is integrated in to Zimbra is baffling me...

    I have my /opt/zimbra/conf/spamassassin/local.cf set to:
    required_score 5

    and yet I get spam delivered to my inbox, with no subject line changed, that has
    X-Spam-Status: No, score=0.9 tagged_above=-10 required=7


    If the score is in excess of the required score, it should be tagged as spam, but it's not, Spamassassin thinks my requirement is 7.

    I have changed the value to 5 in the following files:
    /opt/zimbra/conf/spamassassin/10_default_prefs.cf
    /opt/zimbra/conf/spamassassin/local.cf
    /opt/zimbra/conf/salocal.cf.in
    /opt/zimbra/conf/salocal.cf

    How does one override the Zimbra default of 7?

    Somebody has to know...
    Last edited by void; 12-07-2007 at 04:36 PM.

  2. #2
    void is offline Active Member
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    7

    Default

    Still nothing huh?

    Nobody here ever had to change this value or knows how?

  3. #3
    mrvanes is offline Member
    Join Date
    Sep 2007
    Posts
    12
    Rep Power
    7

    Default

    Had the same problem. Combed the conf dir for string 6.6 and guess what? It's defined in amavisd.conf:

    $sa_tag2_level_deflt = 6.6; # add 'spam detected' headers at that level

    Cheers.
    Martin

    update: it's more complicated. amavisd.conf seems to be generated from amavisd.conf.in while the daemon is (re)started. amavisd.conf.in defines the line like this:

    $sa_tag2_level_deflt = %%range VAR:zimbraSpamTagPercent 0 20%%; # add 'spam detected' headers at that level

    This variable can be set in the admin interface under Global Settings AS/AV tab. So, in the end, it's less complicated than I thought

    Default value is 33% (for crying out loud, why convert SA points to %?) which yields 6.6, so 100% is probably 20 (rounding down). If you want a spamassassin required_score of 5.0 you should fill in 25%.

    I'm speeking for Zimbra 5.0RC2, btw.
    Last edited by mrvanes; 12-10-2007 at 05:27 AM.

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

    Default

    That required score is defined by a setting in your admin UI. Go to Global Settings, the AS/AV tab, and you'll see kill and tag percentages. The "Required" score is 20 times the percentage in that tag field. So for example, 20 * 35% (0.35) = 7. Change that to a lower number and you'll have a lower required score--I have mine set at 24% which results in a required score of 4.8.

    Then of course you still have the issue of whether your messages are getting the kind of scores you want. This article has tons of options for tweaking to your heart's content. I'm partial to the RBLs and some of the customization to Bayes filtering because those two things have been helpful to me (well, that and killing off a few whitelists ) but there are lots of different approaches you can try.

    Dan

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

    Default

    I should have added: editing any of the .cf files results in stuff you'll lose on every upgrade--none of it gets preserved. So any of your changes need to be backed up so you can easily rebuild them. I keep all my changes that must be done at the file level in local.cf so I don't have to restore multiple files/settings.

    The nice thing about changing your tag/kill percent for overall score values is that this setting DOES survive upgrades and any other tweaking you do from within Zimbra. . .while manually-implemented settings can be overwritten depending upon the action you do.

    void, you did not mention the version of Zimbra that you're running. There have been some bugs in prior versions that created some heartburn in this area--for example, if my memory serves version 4.5.7 had a buglet where any change to the spam settings in the UI wiped out any RBLs you had set from the command line.

    Do a zmcontrol -v and paste the resulting string into the version field in your forum profile (and then update it whenever you upgrade) and people will be able to help you with version-specific joys & sorrows. . .

    Cheers,

    Dan

  6. #6
    void is offline Active Member
    Join Date
    Nov 2007
    Posts
    48
    Rep Power
    7

    Default

    Ah thats what was thwarting me. I was GREPing everything for that dang setting using all the tricks I could think of... but alas it is set by that percentage in the admin panel according to that math you posted.

    You win this time Math, but I'll be back!

    Version for the curious:
    Release 4.5.9_GA_1454.RHEL5_20071016194233 CentOS5 NETWORK edition


    Thanks for the assistance on this. It is much appreciated.

  7. #7
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    btw amavisd.conf.in would have shown the mappings...
    zmprov gacf | grep Spam
    would have given ya zimbraSpamKillPercent & zimbraSpamTagPercent

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Some more simple tips for cutting spam. . .
    By dwmtractor in forum Administrators
    Replies: 14
    Last Post: 11-21-2007, 06:03 PM
  2. [SOLVED] Spam delete over a certain score
    By bjquinn in forum Administrators
    Replies: 10
    Last Post: 10-02-2007, 09:30 AM
  3. Simple Spam Assassin help needed
    By gfdos.sys in forum Administrators
    Replies: 3
    Last Post: 09-17-2007, 12:51 PM
  4. Show The Spam Score
    By alivebyscience in forum Administrators
    Replies: 2
    Last Post: 07-08-2007, 10:55 PM
  5. Training spam and ham
    By Justin in forum Developers
    Replies: 2
    Last Post: 10-31-2006, 03:39 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
  •