I was having a look today at my qpsmtpd logs (/var/log/qpsmtpd/*). Noticed a couple of issues, notably (a) that the Bayes criteria that apply to a message did not appear in the logs (used to IIRC) and (b) that there have been references for each mail of the form:
(data_post) spamassassin: error, reject disabled (Ham, 1.1, learn=no)
Regarding (a) I've been following the recommendations in the wiki (
https://wiki.koozali.org/SME_Server:Documentation:FAQ:Section04#Bayesian_Filtering ) to make sure that spamassassin is working alright. I've reset the bayes stats as per the article and hopefully will have bayesian working soon.
I've started receiving messages but from the looks of it, the /var/spool/spamd/.spamassassin/bayes_* files are not being modified after effecting a reset:
ls -laFt /var/spool/spamd/.spamassassin/
total 20
drwxr-s---. 2 spamd spamd 61 Jun 2 11:35 ./
-rw-r----- 1 spamd spamd 10 Jun 2 11:35 bayes.mutex
-rw-r----- 1 spamd spamd 12288 Jun 2 11:35 bayes_toks
-rw-r----- 1 spamd spamd 12288 Jun 2 11:35 bayes_seen
Furthermore, bayes stats indicate that nothing has been learned (could be because a large number of ham/spam must be classified before the stats start indicating something):
# sa-learn --dump magic
netset: cannot include 127.0.0.0/8 as it has already been included
0.000 0 3 0 non-token data: bayes db version
0.000 0 0 0 non-token data: nspam
0.000 0 0 0 non-token data: nham
0.000 0 0 0 non-token data: ntokens
0.000 0 0 0 non-token data: oldest atime
0.000 0 0 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
And regarding (b) above: do the "spamassassin: error, reject disabled" log lines indicate a problem with my setup?
Sidenote 1: instructions in the wiki article indicated that a
spamd setting, SpamLearning, should be enabled (it was not enabled on my SME 10 configuration). Checking my SME 8-9 old configs, this setting was enabled. What's a bit strangier is that doing a "config show spamd" returned nothing at all, whereas on SME9 it did and also returned a status setting (on SME9 set to enabled).
Does this mean that spamd is not used under SME10? Or perhaps is it always on? Bottomline, in order to have bayesian auto-learning, should I do a "config setprop spamd SpamLearning enabled" or not? Should I also do a "config setprop spamd status enabled"? Something else needed?
Sidenote 2: as a test I've tried setting both spamd settings to enabled, but doing a "config show spamd" produces nothing at all afterwards. Something else I should to get this working?