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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-2011, 08:01 PM
Loyal Member
 
Posts: 93
Default Zimbra7 Bayes Anti Spam

Hi All,

I'm trying to get bayes going on spamassassin, based off instructions here:

http://www.zimbra.com/docs/ne/latest...rotection.html

So I did

Code:
zmlocalconfig -e antispam_mysql_enabled=true
zmmtactl restart && zmamavisdctl restart
I did a test run of zmtrainsa on my mailbox but it gave an error
Quote:
ERROR: the Bayes learn function returned an error, please re-run with -D for more information at /opt/zimbra/libexec/sa-learn line 493.
So I found where the learn function was being called and added the -D, and I see the following errors:

Quote:
Jul 13 14:55:41.622 [2960] info: config: SpamAssassin failed to parse line, no value provided for "bayes_sql_password", skipping: bayes_sql_password

//---SNIP

Jul 13 14:55:42.067 [2960] dbg: message: ---- MIME PARSER START ----
Jul 13 14:55:42.067 [2960] dbg: message: parsing normal part
Jul 13 14:55:42.067 [2960] dbg: message: ---- MIME PARSER END ----
Jul 13 14:55:42.067 [2960] dbg: message: decoding other encoding type (8bit), ignoring
Jul 13 14:55:42.069 [2960] dbg: bayes: unable to connect to database: Can't connect to MySQL server on '127.0.0.1' (111)
Jul 13 14:55:42.069 [2960] dbg: bayes: unable to connect to database: Can't connect to MySQL server on '127.0.0.1' (111)
How should I specify the bayes password?

And shouldn't this be mentioned in the docs I linked to above?
Reply With Quote
  #2 (permalink)  
Old 07-13-2011, 05:56 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by MobiusNZ View Post
How should I specify the bayes password?
These are the steps to follow: Scalable Anti-Spam Using Spamassassin and MySQL - Zimbra :: Wiki & Bug 53261 – documentation for setting up MySQL database for spamassassin

Quote:
Originally Posted by MobiusNZ View Post
And shouldn't this be mentioned in the docs I linked to above?
Probably.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-13-2011, 03:01 PM
Loyal Member
 
Posts: 93
Default

I'm confused. We only have one server, so surely what I've done should be enough?

Also this is what I get when running the following commands:

Code:
zimbra@zimbra-1:~$ zmlocalconfig -s antispam_mysql_password
antispam_mysql_password = 
zimbra@zimbra-1:~$ zmlocalconfig -s antispam_mysql_user
antispam_mysql_user = zimbra
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.