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.

multimap.conf 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/multimap.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/multimap.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/multimap.html
  14. multimap {
  15. # Freemail Addresses
  16. freemail_envfrom {
  17. type = "from";
  18. filter = "email:domain";
  19. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  20. symbol = "FREEMAIL_ENVFROM";
  21. description = "Envelope From is a Freemail address";
  22. score = 0.0;
  23. }
  24. freemail_envrcpt {
  25. type = "rcpt";
  26. filter = "email:domain";
  27. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  28. symbol = "FREEMAIL_ENVRCPT";
  29. description = "Envelope Recipient is a Freemail address";
  30. score = 0.0;
  31. }
  32. freemail_from {
  33. type = "header";
  34. header = "from";
  35. filter = "email:domain";
  36. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  37. symbol = "FREEMAIL_FROM";
  38. description = "From is a Freemail address";
  39. score = 0.0;
  40. }
  41. freemail_to {
  42. type = "header";
  43. header = "To";
  44. filter = "email:domain";
  45. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  46. symbol = "FREEMAIL_TO";
  47. description = "To is a Freemail address";
  48. score = 0.0;
  49. }
  50. freemail_cc {
  51. type = "header";
  52. header = "Cc";
  53. filter = "email:domain";
  54. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  55. symbol = "FREEMAIL_CC";
  56. description = "To is a Freemail address";
  57. score = 0.0;
  58. }
  59. freemail_replyto {
  60. type = "header";
  61. header = "Reply-To";
  62. filter = "email:domain";
  63. map = "https://maps.rspamd.com/freemail/free.txt.zst";
  64. symbol = "FREEMAIL_REPLYTO";
  65. description = "Reply-To is a Freemail address";
  66. score = 0.0;
  67. }
  68. # Disposable Addresses
  69. disposable_envfrom {
  70. type = "from";
  71. filter = "email:domain";
  72. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  73. symbol = "DISPOSABLE_ENVFROM";
  74. description = "Envelope From is a Disposable e-mail address";
  75. score = 0.0;
  76. }
  77. disposable_envrcpt {
  78. type = "rcpt";
  79. filter = "email:domain";
  80. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  81. symbol = "DISPOSABLE_ENVRCPT";
  82. description = "Envelope Recipient is a Disposable e-mail address";
  83. score = 0.0;
  84. }
  85. disposable_from {
  86. type = "header";
  87. header = "from";
  88. filter = "email:domain";
  89. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  90. symbol = "DISPOSABLE_FROM";
  91. description = "From a Disposable e-mail address";
  92. score = 0.0;
  93. }
  94. disposable_to {
  95. type = "header";
  96. header = "To";
  97. filter = "email:domain";
  98. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  99. symbol = "DISPOSABLE_TO";
  100. description = "To a disposable e-mail address";
  101. score = 0.0;
  102. }
  103. disposable_cc {
  104. type = "header";
  105. header = "Cc";
  106. filter = "email:domain";
  107. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  108. symbol = "DISPOSABLE_CC";
  109. description = "To a disposable e-mail address";
  110. score = 0.0;
  111. }
  112. disposable_replyto {
  113. type = "header";
  114. header = "Reply-To";
  115. filter = "email:domain";
  116. map = "https://maps.rspamd.com/freemail/disposable.txt.zst";
  117. symbol = "DISPOSABLE_REPLYTO";
  118. description = "Reply-To a disposable e-mail address";
  119. score = 0.0;
  120. }
  121. .include(try=true,priority=5) "${DBDIR}/dynamic/multimap.conf"
  122. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/multimap.conf"
  123. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/multimap.conf"
  124. }
  125. /* Example setup
  126. sender_from_whitelist_user {
  127. type = "from";
  128. filter = "email:user";
  129. map = "file:///tmp/from.map";
  130. symbol = "SENDER_FROM_WHITELIST_USER";
  131. action = "accept"; # Prefilter mode
  132. }
  133. sender_from_regexp {
  134. type = "header";
  135. header = "from";
  136. filter = 'regexp:/.*@/';
  137. map = "file:///tmp/from_re.map";
  138. symbol = "SENDER_FROM_REGEXP";
  139. }
  140. url_map {
  141. type = "url";
  142. filter = "tld";
  143. map = "file:///tmp/url.map";
  144. symbol = "URL_MAP";
  145. }
  146. url_tld_re {
  147. type = "url";
  148. filter = 'tld:regexp:/\.[^.]+$/'; # Extracts the last component of URL
  149. map = "file:///tmp/url.map";
  150. symbol = "URL_MAP_RE";
  151. }
  152. */