Results 1 to 5 of 5

Thread: Bayes filter import bug

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    10

    Default Bayes filter import bug

    I was running the zmtrainsa on my junk bin and received a bunch of errors on each of the messages. This is the output from 1 message:

    reading message james@fp-tech.com@zimbra.ohio.fp-tech.com:39 of 39 (2934 header octets) .. (0 body octets) configuration file "/usr/share/spamassassin/20_body_t ests.cf" requires version 3.000001 of SpamAssassin, but this is code version 3.0 00004. Maybe you need to use the -C switch, or remove the old config files? Skip ping this file at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm lin e 332.
    configuration file "/usr/share/spamassassin/20_compensate.cf" requires version 3 .000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to us e the -C switch, or remove the old config files? Skipping this file at /opt/zimb ra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_dnsbl_tests.cf" requires version 3.000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to u se the -C switch, or remove the old config files? Skipping this file at /opt/zim bra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_drugs.cf" requires version 3.0000 01 of SpamAssassin, but this is code version 3.000004. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /opt/zimbra/zi mbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_fake_helo_tests.cf" requires vers ion 3.000001 of SpamAssassin, but this is code version 3.000004. 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 332.
    configuration file "/usr/share/spamassassin/20_head_tests.cf" requires version 3 .000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to us e the -C switch, or remove the old config files? Skipping this file at /opt/zimb ra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_html_tests.cf" requires version 3 .000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to us e the -C switch, or remove the old config files? Skipping this file at /opt/zimb ra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_meta_tests.cf" requires version 3 .000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to us e the -C switch, or remove the old config files? Skipping this file at /opt/zimb ra/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_phrases.cf" requires version 3.00 0001 of SpamAssassin, but this is code version 3.000004. Maybe you need to use t he -C switch, or remove the old config files? Skipping this file at /opt/zimbra/ zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_****.cf" requires version 3.00000 1 of SpamAssassin, but this is code version 3.000004. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /opt/zimbra/zim bramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/20_uri_tests.cf" requires version 3. 000001 of SpamAssassin, but this is code version 3.000004. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /opt/zimbr a/zimbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    configuration file "/usr/share/spamassassin/23_bayes.cf" requires version 3.0000 01 of SpamAssassin, but this is code version 3.000004. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /opt/zimbra/zi mbramon/lib/Mail/SpamAssassin/Conf/Parser.pm line 332.
    .
    Learned from 1 message(s) (1 message(s) examined).
    not flushed

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default which user?

    Are you running this as the zimbra user? It sounds like it's finding the config files from another install on your host.

  3. #3
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    10

    Default

    Quote Originally Posted by marcmac
    Are you running this as the zimbra user? It sounds like it's finding the config files from another install on your host.
    Yes, it's running as the zimbra user. I tried running it as root, and it complained that it needs to be run as zimbra. This is the only application I have running on the host. It's a full install of RHEL4 with no changes, and the only other thing installed is zimbra.

  4. #4
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default It's a bug

    This looks like a bug on our part.

    Here's the workaround:

    Edit /opt/zimbra/bin/sa-learn, and look for this line:
    my $DEF_RULES_DIR = '/usr/share/spamassassin'; # substituted at 'make' time

    Change that to:

    my $DEF_RULES_DIR = '/opt/zimbra/conf/spamassasin';

    And the errors should go away.

  5. #5
    Join Date
    Nov 2005
    Posts
    14
    Rep Power
    10

    Default

    Yup, that fixed it. This time it made it through all of the messages with no problems.

Similar Threads

  1. Email filter bug
    By Richard in forum Users
    Replies: 3
    Last Post: 01-28-2006, 04:09 PM
  2. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM
  3. M3-381 Filter bug
    By phoenix in forum Developers
    Replies: 4
    Last Post: 12-31-2005, 10:53 AM
  4. possible bug with filter rules
    By psuter in forum Administrators
    Replies: 1
    Last Post: 11-22-2005, 08:52 AM
  5. Create tag bug in create new filter
    By PotatoBob in forum Developers
    Replies: 3
    Last Post: 10-31-2005, 09:16 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
  •