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

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 12-01-2005, 11:09 PM
Senior Member
 
Posts: 51
Default Fix for SA Configure Files Version Mismatch

I was getting quite a few of these errors of version mismatches with spamassassin's configure files. I beleive this is causing a few spam checks to be not run by amavis. The following is an example of the error, zmtrainsa will also throw these errors.

Code:
config: configuration file "/opt/zimbra/conf/spamassassin/20_html_tests.cf" requires version 3.000004 of SpamAssassin, but this is code version 3.001000. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 342.
To fix this or rather make it ignore the version errors, edit "/opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm" around line 342 to as follows. This probably isn't the best way to fix it but it seems to make it work right.
Code:
# if we want to allow "require_version 3.0" be good for all
      # "3.0.x" versions:
      ## make sure it's a numeric value
      $value += 0.1;
      ## convert 3.000000 -> 3.0, stay backwards compatible ...  
      $ver =~ s/^(\d+)\.(\d{1,3}).*$/sprintf "%d.%d", $1, $2/e;  
      $value =~ s/^(\d+)\.(\d{1,3}).*$/sprintf "%d.%d", $1, $2/e;

      if ($ver != $value) {
        warn "config: configuration file \"$self->{currentfile}\" requires version ".
                "$value of SpamAssassin, but this is code version ".
                "$ver. Maybe you need to use ".
                "the -C switch, or remove the old config files? ".
                "Skipping this file";
        $skip_parsing = 1;
        $conf->{errors}++;
      }

Also, for some reason AWL checks aren't run anymore. I get this error message shown as Amavis is started in debug mode:
Code:
rules: failed to run AWL test, skipping:
        (Can't locate object method "check_from_in_auto_whitelist" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
I havn't quite figured that one out yet. I assume the AWL test is no longer installed. Of course there are the same errors for razor, pyzor, dcc not being installed.

-Ben

Note: This is M2 on Fedora Core 4 using the FC4 build.

Last edited by unilogic : 12-02-2005 at 12:21 AM.
Reply With Quote
  #2 (permalink)  
Old 12-03-2005, 07:37 PM
Active Member
 
Posts: 35
Default

unilogic GOOD FIX. I can now run zmtrainsa without errors. But nothing is getting caught in the Junk folder yet. Running FC4 w/Zimbra FC4 build too. Everything else is running good, even the antivirus. Just no anti-spam. I think its not actually running spamassassin tests on the incoming mail here is what the Show Original on an email message looks like:

Code:
X-Virus-Scanned: amavisd-new at 
X-Spam-Status: No, hits=0 tagged_above=-10 required=2 autolearn=no
 tests=[none]
X-Spam-Level: 

------=_Part_12157_3951028.1133663030019
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

v1agra v1agra
What does yours show? And do you have any good tests for checking spam detection? Thanks!

Last edited by moebis : 12-03-2005 at 07:48 PM.
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