Results 1 to 2 of 2

Thread: Fix for SA Configure Files Version Mismatch

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    51
    Rep Power
    9

    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-01-2005 at 11:21 PM.

  2. #2
    Join Date
    Nov 2005
    Location
    Frenchtown, NJ
    Posts
    35
    Rep Power
    9

    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 06:48 PM.

Similar Threads

  1. Replies: 1
    Last Post: 07-31-2007, 09:12 PM
  2. Replies: 8
    Last Post: 02-27-2007, 03:10 AM
  3. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  4. Replies: 16
    Last Post: 09-07-2006, 06:39 AM
  5. Bayes filter import bug
    By jwilso2 in forum Developers
    Replies: 4
    Last Post: 11-03-2005, 08:01 AM

Posting Permissions

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