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 11-03-2005, 07:33 AM
Member
 
Posts: 14
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
Reply With Quote
  #2 (permalink)  
Old 11-03-2005, 07:48 AM
Zimbra Employee
 
Posts: 2,073
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.
Reply With Quote
  #3 (permalink)  
Old 11-03-2005, 08:01 AM
Member
 
Posts: 14
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.
Reply With Quote
  #4 (permalink)  
Old 11-03-2005, 08:13 AM
Zimbra Employee
 
Posts: 2,073
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.
Reply With Quote
  #5 (permalink)  
Old 11-03-2005, 09:01 AM
Member
 
Posts: 14
Default

Yup, that fixed it. This time it made it through all of the messages with no problems.
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