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?