aports/config/rspamd/statistic.conf

27 lines
486 B
Plaintext

classifier "bayes" {
learn_condition = 'return require("lua_bayes_learn").can_learn';
tokenizer {
name = "osb";
}
backend = "redis";
min_tokens = 20;
min_learns = 50;
new_schema = true;
store_tokens = true;
signatures = false;
expire = 604800;
statfile {
symbol = "BAYES_HAM";
spam = false;
}
statfile {
symbol = "BAYES_SPAM";
spam = true;
}
autolearn {
learn_verdict = true; # Learn based on message verdict
check_balance = true;
min_balance = 0.9;
}
}