Topic: Setup Bayes
==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 10
- Related log if you're reporting an issue:
Jul 12 02:07:55.811 [1975] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x80a2b89a8) implements 'learner_new', priority 0
Jul 12 02:07:55.811 [1975] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x80a2b89a8), bayes_store_module=Mail::SpamAssassin::BayesStore::MySQL
Jul 12 02:07:55.840 [1975] dbg: bayes: using username: vmail
Jul 12 02:07:55.841 [1975] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x80b2edb88)
Jul 12 02:07:55.841 [1975] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x80a2b89a8) implements 'learner_is_scan_available', priority 0
Jul 12 02:07:55.872 [1975] dbg: bayes: database connection established
Jul 12 02:07:55.873 [1975] dbg: bayes: found bayes db version 3
Jul 12 02:07:55.873 [1975] dbg: bayes: unable to initialize database for vmail user, aborting!
====
I'm trying to setup Bayes following the article: http://www.iredmail.org/wiki/index.php? … yes.In.SQL
Created the database using /usr/local/share/doc/spamassassin/sql/bayes_mysql.sql instead of the one from apache.org.
But I'm confused for the settings for Spamassasin local.cf:
bayes_sql_username sa_user
bayes_sql_password sa_user_password
Do I create a new database user and password, or reuse an existing one?
When I run spamassassin --lint -D the output pasted above shows that Bayes is using 'vmail' instead of 'sa_user', because of 'bayes_sql_override_username vmail' in the Spamassassin local.cf?
Thanks!
Gerry
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.