[Rspamd-Users] autolearn spam only works partially

Gerald Galster list+rspamd at gcore.biz
Mon Mar 25 23:00:37 UTC 2024


> I have the problem that the statistic autolearn function only teaches Ham. Spam only in small numbers.
> SPAM/HAM ratio 1:10. Although a lot of spam comes in and is marked with add header, rewrite subject or reject. The log file then only says autolearn=unavailable
> 
> what could that be?

[...]

> 	autolearn {
> 	  spam_threshold = 6.0;
> 	  junk_threshold = 4.0;
> 	  ham_threshold = -0.5;
> 	  check_balance = true;
           ^^^^^^^^
> 	  min_balance = 0.9;
           ^^^^^^^^^

You could enable debug and look for messages like "skip learning spam, balance is not satisfied".

https://github.com/rspamd/rspamd/blob/47fe3c705a1f3495b4b0b23413b74bf6d7a40803/lualib/lua_bayes_learn.lua#L129

Best regards,
Gerald


More information about the Users mailing list