[Rspamd] Various fixes for Rspamd 2.0, neural network activated, autolearning activated (auto-keeps a ratio)

This commit is contained in:
andryyy
2019-10-12 13:14:34 +02:00
parent 8783ec4415
commit ee57b5921f
5 changed files with 52 additions and 24 deletions

View File

@@ -2,18 +2,23 @@ classifier "bayes" {
tokenizer {
name = "osb";
}
autolearn = false;
backend = "redis";
min_tokens = 11;
min_learns = 5;
new_schema = true;
expire = 2592000;
statfile {
symbol = "BAYES_HAM";
spam = false;
symbol = "BAYES_HAM";
spam = false;
}
statfile {
symbol = "BAYES_SPAM";
spam = true;
symbol = "BAYES_SPAM";
spam = true;
}
autolearn {
spam_threshold = 12.0;
ham_threshold = -4.5;
check_balance = true;
min_balance = 0.9;
}
}