On 19 Jan 2018, at 9:12 (-0500), Heiler Bemerguy wrote:
[...]
I had cleared bayes database with --clear some days ago and had
restarted spamassassin service. Today I saw some autolearning on
mail.log, but all the "dump magic" values are still 0
see: **spamd: result: Y 8 -
DEAR_FRIEND,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,LOTS_OF_MONEY,MONEY_FRAUD_5,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SUBJ_ALL_CAPS,TRACKER_ID,T_DKIM_INVALID,T_HK_NAME_FM_MR_MRS
scantime=7.1,size=4797,user=debian-spamd,uid=110,required_score=2.3,rhost=::1,raddr=::1,rport=36112,mid=[<caf9ik-r8aop_dkwbqypgsorthk4gydjhvecidsartt_2csi...@mail.gmail.com>](<mailto:caf9ik-r8aop_dkwbqypgsorthk4gydjhvecidsartt_2csi...@mail.gmail.com>),
autolearn=spam autolearn_force=no,shortcircuit=no**
and: **spamd: result: . -5 -
MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL
scantime=6.8,size=8775,user=debian-spamd,uid=110,required_score=2.3,rhost=::1,raddr=::1,rport=45058,mid=[<1516368774.83432.ez...@spamassassin.apache.org>](<mailto:1516368774.83432.ez...@spamassassin.apache.org>),
autolearn=ham autolearn_force=no,shortcircuit=no**
These show Bayes learning by the user debian-spamd.
BUT:
root@mailer:~# sa-learn --dump magic
This checks the Bayes DB for the user root.
root != debian-spamd
You need to either run sa-learn as debian-spamd (possibly infeasible) or
make root use the Bayes DB used by debian-spamd, which may be as simple
as this:
ln -sf ~debian-spamd/.spamassassin ~root/
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole