On 02/25/2015 10:03 PM, Dave Funk wrote:

It looks like you either have a permissions problem or a confusion problem.
Your run of 'sa-learn --dump magic' is looking at some Bayes which has
enough ham/spam but what ever your spamassasin is looking at doesn't.

Your 'sudo' isn't running that sa-learn --dump magic as UID 'debian-spamd' It's running it as root but telling sa-learn to emulate user 'debian-spamd'
so there could be a permissions problem.
Try running sa-learn in the same way that you're running spamassasin:

 $ sudo -u debian-spamd sa-learn --dump magic
and see what you get.
$ sudo -u debian-spamd sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0       1352          0  non-token data: nspam
0.000          0          0          0  non-token data: nham
0.000          0      58333          0  non-token data: ntokens
0.000          0 1421498542          0  non-token data: oldest atime
0.000          0 1424944629          0  non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta 0.000 0 0 0 non-token data: last expire reduction count


Other possibility is that sa-learn is looking at a different bayes
database. Try running that "sa-learn --dump magic" with the "-D" option
to see what bayes database it's looking at.


Mail::SpamAssassin::Plugin::Bayes=HASH(0x11ca118) implements 'learner_dump_data
tie-ing to DB file R/O /var/lib/spamassassin/.spamassassin/bayes_toks
tie-ing to DB file R/O /var/lib/spamassassin/.spamassassin/bayes_seen

Ok, that gives me stuff to look at, thanks.

Reply via email to