You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

statistic.conf 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. # Rspamd statistic setup
  16. # Pre-build files could be loaded from:
  17. # http://rspamd.com/rspamd_statistics/bayes.spam.sqlite
  18. # - and -
  19. # http://rspamd.com/rspamd_statistics/bayes.ham.sqlite
  20. classifier {
  21. type = "bayes";
  22. tokenizer {
  23. name = "osb";
  24. }
  25. cache {
  26. path = "${DBDIR}/learn_cache.sqlite";
  27. }
  28. min_tokens = 11;
  29. backend = "sqlite3";
  30. languages_enabled = true;
  31. statfile {
  32. symbol = "BAYES_HAM";
  33. path = "${DBDIR}/bayes.ham.sqlite";
  34. spam = false;
  35. }
  36. statfile {
  37. symbol = "BAYES_SPAM";
  38. path = "${DBDIR}/bayes.spam.sqlite";
  39. spam = true;
  40. }
  41. .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/statistic.conf"
  42. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/statistic.conf"
  43. }