oh and independent of not running as root you have only 301 spam messages while the docs clearly state you need at least 400 ham as well as 400 spam samples

Am 23.06.2015 um 02:01 schrieb Reindl Harald:
Am 23.06.2015 um 01:55 schrieb Michael B Allen:
How can I tell if SA is tagging using bayes?

if you see the bayes tags in headers and logs

[root@www .spamassassin]# pwd
/var/log/spamassassin/.spamassassin
[root@www .spamassassin]# ls -la
total 1100
drwx------ 2 spamd spamd    4096 Jun 22 19:42 .
drwx------ 3 spamd spamd    4096 Jun  7 00:41 ..
-rw------- 1 spamd spamd   45056 Jun 22 19:42 bayes_seen
-rw------- 1 spamd spamd 1290240 Jun 22 19:42 bayes_toks
-rw-r--r-- 1 spamd spamd    1869 Jun  7 00:41 user_prefs

i doubt that SA is using the bayes of root
so you just rain the wrong bayes

[root@www .spamassassin]# sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0        301          0  non-token data: nspam
0.000          0      11236          0  non-token data: nham
0.000          0     419941          0  non-token data: ntokens
0.000          0 1150469108          0  non-token data: oldest atime
0.000          0 1435015894          0  non-token data: newest atime
0.000          0 1435016419          0  non-token data: last journal
sync atime
0.000          0 1435016432          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

again: SA don'trun as root in any sane setup and hence won't use *that*
bayes-db

reduction count
[root@www .spamassassin]# cat ../../maillog | grep BAYES
[root@www .spamassassin]#

I don't see any BAYES_ tags in X-Spam-Report.

see above

I'm using a default SA install on CentOS 7.

what is a "default install"?
it can be spamass-milter or anything else calling SA

Do I need a local.cf? From looking at the docs, it claims bayes is
enabled by default. How can I check this?

Or maybe I haven't sa-learn'd enough spam?

no, you just rain the wrong bayes and NEVER EVER should run such things
as root - http://wiki.apache.org/spamassassin/SiteWideBayesSetup

we are running spamd as well as spamass-milter with it's user and to be
explicit have the following line in /etc/mail/spamassassin/local.cf
while it's not strictly needed in that case since that's the userhome
bayes_path /var/lib/spamass-milter/.spamassassin/bayes


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to