Spamassassin autolearn

felix_84

Member
Oct 22, 2017
29
6
23
39
Hi. Can anyone tell what should be the correct settings for bayes autolearn?

Where shoud i set thresholds and other
 
I am also interested in this question.
For starters, I did these actions:
cp /var/lib/pmg/templates/local.cf.in /etc/pmg/templates/local.cf.in
vim /etc/pmg/templates/local.cf.in
# ...
bayes_auto_learn 1

Log before:
SA score=1/5 time=3.518 bayes=undefined autolearn=no autolearn_force=no

Log after:
SA score=0/5 time=4.529 bayes=undefined autolearn=ham autolearn_force=no
 
I did the same and added this lines in /etc/pmg/templates/local.cf.in
Code:
use_bayes_rules 1
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam -0.1
bayes_auto_learn_threshold_spam 10

Nonspam messages learned but spam is not.

sa-learn --dump-magic shows following:

0.000 0 46 0 non-token data: nspam
0.000 0 522 0 non-token data: nham

But this 46 tokens was learned a long time ago, and now this counter does not changing even though i have many spam messages with score 10 and more
 
2019.11.08
0.000 0 4 0 non-token data: nspam
0.000 0 473 0 non-token data: nham
2019.11.11
0.000 0 9 0 non-token data: nspam
0.000 0 499 0 non-token data: nham