On Wed, 2014-07-23 at 14:34 -0700, Asai wrote:
The mail server is running as a different user than amavis, so I ran
this under the amavis user:
0.000 0 3 0 non-token data: bayes db version
0.000 0 624 0 non-token data: nspam
0.000 0 11919 0 non-token data: nham
While that seems a little biased, that's sufficient training with
default thresholds of 200 each.
0.000 0 120783 0 non-token data: ntokens
0.000 0 1405862394 0 non-token data: oldest atime
0.000 0 1406151128 0 non-token data: newest atime
Good, just a few hours ago.
sa-learn is running under amavis as well.
Yet, there are no BAYES_xx rules hit, so the Bayesian classifier somehow
has been disabled.
Check your SA conf with a fine-toothed comb. Grepping the .cf files for
'bayes' should get you most relevant options. In addition, check for the
use_learner option. Besides the obvious use_bayes, the use_bayes_rules
option seems a likely candidate for your issue.
If that still doesn't explain it, it's time for some debugging. Both
using the plain 'spamassassin' executable directly, as well as debugging
Amavis.
Thanks, Karsten. I got Bayes working. It had to do with the MySQL
bayes_seen table being in latin1 and not in UTF8. Once I converted the
table and data to UTF8, it worked.