Skip to content

Commit

Permalink
[Rspamd] Fix bayes config (#6000)
Browse files Browse the repository at this point in the history
* [Rspamd] Fix bayes config

Add hint about classifier name, and add missing learn_condition

* Update statistic.conf
  • Loading branch information
dragoangel authored Aug 12, 2024
1 parent 9fee568 commit 8753ea2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/conf/rspamd/local.d/statistic.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
classifier "bayes" {
# name = "custom"; # 'name' parameter must be set if multiple classifiers are defined
learn_condition = 'return require("lua_bayes_learn").can_learn';
new_schema = true;
tokenizer {
name = "osb";
}
backend = "redis";
min_tokens = 11;
min_learns = 5;
new_schema = true;
expire = 2592000;
expire = 7776000;
statfile {
symbol = "BAYES_HAM";
spam = false;
Expand Down

0 comments on commit 8753ea2

Please sign in to comment.