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.

stats.conf 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. options = {
  2. filters = ["spf", "dkim", "regexp"]
  3. url_tld = "${TESTDIR}/../lua/unit/test_tld.dat"
  4. pidfile = "${TMPDIR}/rspamd.pid"
  5. dns {
  6. retransmits = 10;
  7. timeout = 2s;
  8. fake_records = [{
  9. name = "example.net";
  10. type = txt;
  11. replies = ["v=spf1 -all"];
  12. }]
  13. }
  14. }
  15. logging = {
  16. type = "file",
  17. level = "debug"
  18. filename = "${TMPDIR}/rspamd.log"
  19. }
  20. metric = {
  21. name = "default",
  22. actions = {
  23. reject = 100500,
  24. }
  25. unknown_weight = 1
  26. }
  27. worker {
  28. type = normal
  29. bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
  30. count = 1
  31. keypair {
  32. pubkey = "${KEY_PUB1}";
  33. privkey = "${KEY_PVT1}";
  34. }
  35. task_timeout = 60s;
  36. }
  37. worker {
  38. type = controller
  39. bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
  40. count = 1
  41. keypair {
  42. pubkey = "${KEY_PUB1}";
  43. privkey = "${KEY_PVT1}";
  44. }
  45. secure_ip = ["127.0.0.1", "::1"];
  46. stats_path = "${TMPDIR}/stats.ucl";
  47. }
  48. classifier {
  49. languages_enabled = true;
  50. tokenizer {
  51. name = "osb";
  52. ${STATS_HASH}
  53. ${STATS_KEY}
  54. }
  55. backend = ${STATS_BACKEND}
  56. statfile {
  57. spam = true;
  58. symbol = BAYES_SPAM;
  59. size = 1M;
  60. ${REDIS_SERVER}
  61. }
  62. statfile {
  63. spam = false;
  64. symbol = BAYES_HAM;
  65. size = 1M;
  66. ${REDIS_SERVER}
  67. }
  68. cache {
  69. ${REDIS_SERVER}
  70. }
  71. }
  72. lua = "${TESTDIR}/lua/test_coverage.lua";
  73. settings {}