[Rspamd-Users] Migrate bayes from sqlite to redis, learns are lost

Aki Kyo aki.2kyo at gmail.com
Tue Jul 30 20:17:19 UTC 2019


I used 'rspamadm configwizard statistics' which converted sqlite
database to redis very nice!

rspamc stat shows success:

Statfile: BAYES_SPAM type: redis; length: 0; free blocks: 0; total
blocks: 0; free: 0.00%; learned: 872; users: 11; languages: 0
Statfile: BAYES_HAM type: redis; length: 0; free blocks: 0; total
blocks: 0; free: 0.00%; learned: 2891; users: 254; languages: 0
Total learns: 3763

But in rspamd.log there is no messages with BAYES_HAM or BAYES_SPAM
symbols, instead I find:

bayes_classify: skip classification as ham class has not enough
learns: 41, 200 required

If I must reset all bayes to zero, it's not desired but I could live
(how would I purge all stats from redis?) Previous sqlite learns were
from autolearn[0,9] but as advised on mailing list I change now to
autolearn[-20,20] so probably learns will be infrequent. What is best
alternative to autolearn... how about feeding messages coming to not
existing accounts on my domain (I get a fair amount of those
attempts)?


More information about the Users mailing list