diff --git a/data/conf/rspamd/local.d/statistic.conf b/data/conf/rspamd/local.d/statistic.conf index 98db7a997..4867f78ae 100644 --- a/data/conf/rspamd/local.d/statistic.conf +++ b/data/conf/rspamd/local.d/statistic.conf @@ -1,29 +1,13 @@ classifier "bayes" { tokenizer { - name = "osb"; + name = "osb"; } - + autolearn = false; backend = "redis"; - name = "per_domain_bayes"; min_tokens = 11; - min_learns = 20; + min_learns = 5; new_schema = true; - expiry = 50d; - per_user = <= 0.95 - else - cl = 'ham' - in_class = prob <= 0.05 - end - - if in_class then - return false,string.format('already in class %s; probability %.2f%%', - cl, math.abs((prob - 0.5) * 200.0)) - end - end - - return true -end -EOD }