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.7KB

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