aports/config/rspamd/statistic.conf

27 lines
486 B
Plaintext
Raw Normal View History

2021-01-10 03:44:49 +00:00
classifier "bayes" {
2021-02-11 10:19:23 +00:00
learn_condition = 'return require("lua_bayes_learn").can_learn';
2021-01-10 03:44:49 +00:00
tokenizer {
name = "osb";
}
2021-02-11 10:19:23 +00:00
backend = "redis";
min_tokens = 11;
min_learns = 5;
2021-01-10 03:44:49 +00:00
new_schema = true;
2021-02-11 10:19:23 +00:00
store_tokens = true;
2021-01-10 03:44:49 +00:00
signatures = false;
2021-02-11 10:19:23 +00:00
expire = 2592000;
2021-01-10 03:44:49 +00:00
statfile {
symbol = "BAYES_HAM";
spam = false;
}
statfile {
symbol = "BAYES_SPAM";
spam = true;
}
autolearn {
learn_verdict = true; # Learn based on message verdict
2021-02-11 10:19:23 +00:00
check_balance = true;
min_balance = 0.9;
2021-01-10 03:44:49 +00:00
}
}