Skip to content

Commit

Permalink
Merge pull request #51 from vedetta-com/wip
Browse files Browse the repository at this point in the history
Update Statistic
  • Loading branch information
horia authored Mar 17, 2018
2 parents 6abfc62 + d8cd41a commit e5662cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/etc/rspamd/local.d/classifier-bayes.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# https://rspamd.com/doc/configuration/statistic.html

# Rspamd statistic setup
# Pre-built files could be loaded from:
# http://rspamd.com/rspamd_statistics/bayes.spam.sqlite
# - and -
# http://rspamd.com/rspamd_statistics/bayes.ham.sqlite

# Classifier's algorithm is BAYES

# Minimum number of words required for statistics processing
min_tokens = 11;
# Minimum learn count for both spam and ham classes to perform classification
min_learns = 200;

# Autolearning is performing as spam if a message has reject action and as ham if a message has negative score
autolearn = true;
# or autolearn as ham if score is less -5 and as spam if score is more than 5
#autolearn = [-5, 5];
# or use the following Lua function to detect if autolearn is needed (return "ham", "spam", or nil)
#autolearn = "return function(task) ... end";

# v1.7
#backend = "redis";

0 comments on commit e5662cf

Please sign in to comment.