multimap.conf 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. RCPT_MAILCOW_DOMAIN {
  2. type = "rcpt";
  3. filter = "email:domain";
  4. map = "redis://DOMAIN_MAP";
  5. symbols_set = ["RCPT_MAILCOW_DOMAIN"];
  6. }
  7. RCPT_WANTS_SUBJECT_TAG {
  8. type = "rcpt";
  9. filter = "email:addr";
  10. map = "redis://RCPT_WANTS_SUBJECT_TAG";
  11. symbols_set = ["RCPT_WANTS_SUBJECT_TAG"];
  12. }
  13. RCPT_WANTS_SUBFOLDER_TAG {
  14. type = "rcpt";
  15. filter = "email:addr";
  16. map = "redis://RCPT_WANTS_SUBFOLDER_TAG";
  17. symbols_set = ["RCPT_WANTS_SUBFOLDER_TAG"];
  18. }
  19. WHITELISTED_FWD_HOST {
  20. type = "ip";
  21. map = "redis://WHITELISTED_FWD_HOST";
  22. symbols_set = ["WHITELISTED_FWD_HOST"];
  23. }
  24. BULK_HEADER {
  25. type = "content";
  26. map = "$LOCAL_CONFDIR/custom/bulk_header.map";
  27. filter = "headers"
  28. regexp = true;
  29. symbols_set = ["BULK_HEADER"];
  30. }
  31. LOCAL_BL_ASN {
  32. require_symbols = "!MAILCOW_WHITE";
  33. type = "asn";
  34. map = "$LOCAL_CONFDIR/custom/bad_asn.map";
  35. score = 5;
  36. description = "Sender's ASN is on the local blacklist";
  37. symbols_set = ["LOCAL_BL_ASN"];
  38. }
  39. GLOBAL_SMTP_FROM_WL {
  40. type = "from";
  41. map = "$LOCAL_CONFDIR/custom/global_smtp_from_whitelist.map";
  42. regexp = true;
  43. prefilter = true;
  44. action = "accept";
  45. }
  46. GLOBAL_SMTP_FROM_BL {
  47. type = "from";
  48. map = "$LOCAL_CONFDIR/custom/global_smtp_from_blacklist.map";
  49. regexp = true;
  50. prefilter = true;
  51. action = "reject";
  52. }
  53. GLOBAL_MIME_FROM_WL {
  54. type = "header";
  55. header = "from";
  56. map = "$LOCAL_CONFDIR/custom/global_mime_from_whitelist.map";
  57. regexp = true;
  58. prefilter = true;
  59. action = "accept";
  60. }
  61. GLOBAL_MIME_FROM_BL {
  62. type = "header";
  63. header = "from";
  64. map = "$LOCAL_CONFDIR/custom/global_mime_from_blacklist.map";
  65. regexp = true;
  66. prefilter = true;
  67. action = "reject";
  68. }
  69. GLOBAL_RCPT_WL {
  70. type = "rcpt";
  71. map = "$LOCAL_CONFDIR/custom/global_rcpt_whitelist.map";
  72. regexp = true;
  73. prefilter = true;
  74. action = "accept";
  75. }
  76. GLOBAL_RCPT_BL {
  77. type = "rcpt";
  78. map = "$LOCAL_CONFDIR/custom/global_rcpt_blacklist.map";
  79. regexp = true;
  80. prefilter = true;
  81. action = "reject";
  82. }
  83. SIEVE_HOST {
  84. type = "ip";
  85. map = "$LOCAL_CONFDIR/custom/dovecot_trusted.map";
  86. symbols_set = ["SIEVE_HOST"];
  87. score = -15;
  88. }
  89. RSPAMD_HOST {
  90. type = "ip";
  91. map = "$LOCAL_CONFDIR/custom/rspamd_trusted.map";
  92. symbols_set = ["RSPAMD_HOST"];
  93. }
  94. MAILCOW_DOMAIN_HEADER_FROM {
  95. type = "header";
  96. header = "from";
  97. filter = "email:domain";
  98. map = "redis://DOMAIN_MAP";
  99. }
  100. IP_WHITELIST {
  101. type = "ip";
  102. map = "$LOCAL_CONFDIR/custom/ip_wl.map";
  103. prefilter = "true";
  104. action = "accept";
  105. }
  106. FISHY_TLD {
  107. type = "from";
  108. filter = "email:domain";
  109. map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map";
  110. regexp = true;
  111. score = 0.1;
  112. }
  113. BAD_WORDS {
  114. type = "content";
  115. filter = "text";
  116. map = "${LOCAL_CONFDIR}/custom/bad_words.map";
  117. regexp = true;
  118. score = 0.1;
  119. }
  120. BAD_WORDS_DE {
  121. type = "content";
  122. filter = "text";
  123. map = "${LOCAL_CONFDIR}/custom/bad_words_de.map";
  124. regexp = true;
  125. score = 0.1;
  126. }
  127. BAD_LANG {
  128. type = 'selector';
  129. selector = 'languages';
  130. map = "${LOCAL_CONFDIR}/custom/bad_languages.map";
  131. symbols_set = ["LANG_FILTER"];
  132. regexp = true;
  133. score = 5.0;
  134. }
  135. BAZAR_ABUSE_CH {
  136. type = "selector";
  137. selector = "attachments(hex,md5)";
  138. map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
  139. score = 10.0;
  140. }