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.

settings.conf 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"
  2. lua = "{= env.LUA_SCRIPT =}";
  3. settings {
  4. id_test {
  5. id = "id_test";
  6. apply {
  7. symbols_enabled = ["SIMPLE_TEST"];
  8. }
  9. }
  10. id_pre { # implicit id
  11. apply {
  12. symbols_enabled = ["SIMPLE_PRE"];
  13. }
  14. }
  15. id_virtual {
  16. apply {
  17. symbols_enabled = ["SIMPLE_VIRTUAL"];
  18. }
  19. }
  20. id_virtual1 {
  21. apply {
  22. symbols {
  23. EXPLICIT_VIRTUAL1 = 10.0
  24. }
  25. symbols_enabled = ["DEP_REAL"];
  26. }
  27. }
  28. id_virtual_group {
  29. user = "test@example.com";
  30. from = "test2@example.com";
  31. hostname = "example.com";
  32. selector = "rcpts:addr.in(test3@example.com)";
  33. header = {
  34. "Content-Transfer-Encoding" = "7bit";
  35. "Custom-Header" = true;
  36. "Mime-Version" = false;
  37. }
  38. request_header = {
  39. "Test" = "passed";
  40. }
  41. expression = 'user || from || hostname || selector:1 || header:mime_version || header:custom_header || header:1 || request_header:test'
  42. apply {
  43. symbols_enabled {
  44. SIMPLE_VIRTUAL = 10.0;
  45. }
  46. symbols {
  47. EXPLICIT_VIRTUAL = 10.0
  48. }
  49. }
  50. }
  51. id_test_priority {
  52. priority = high;
  53. from = "user@test.com";
  54. apply {
  55. symbols_enabled {
  56. PRIORITY = 10.0;
  57. }
  58. symbols {
  59. PRIORITY_2 = 10.0
  60. }
  61. }
  62. }
  63. empty_symbols_enabled {
  64. ip = "5.5.5.5";
  65. apply {
  66. symbols_enabled = [];
  67. }
  68. }
  69. empty_groups_enabled {
  70. ip = "5.5.5.6";
  71. apply {
  72. groups_enabled = [];
  73. }
  74. }
  75. }
  76. classifier {
  77. backend = "sqlite3";
  78. statfile {
  79. spam = true;
  80. symbol = BAYES_SPAM;
  81. path = "/tmp/bayes.spam.sqlite3";
  82. }
  83. statfile {
  84. spam = false;
  85. symbol = BAYES_HAM;
  86. path = "/tmp/bayes.ham.sqlite3";
  87. }
  88. min_learns = 1;
  89. min_token_hits = 1;
  90. }