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.

modules.conf 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. # Rspamd modules configuration
  2. fuzzy_check {
  3. min_bytes = 300;
  4. rule {
  5. servers = "highsecure.ru:11335";
  6. symbol = "FUZZY_UNKNOWN";
  7. mime_types = "application/pdf";
  8. max_score = 20.0;
  9. read_only = yes;
  10. skip_unknown = yes;
  11. fuzzy_map = {
  12. FUZZY_DENIED {
  13. max_score = 20.0;
  14. flag = 1
  15. }
  16. FUZZY_PROB {
  17. max_score = 10.0;
  18. flag = 2
  19. }
  20. FUZZY_WHITE {
  21. max_score = 2.0;
  22. flag = 3
  23. }
  24. }
  25. }
  26. }
  27. forged_recipients {
  28. symbol_sender = "FORGED_SENDER";
  29. symbol_rcpt = "FORGED_RECIPIENTS";
  30. }
  31. maillist {
  32. symbol = "MAILLIST";
  33. }
  34. surbl {
  35. whitelist = "file://$CONFDIR/surbl-whitelist.inc";
  36. exceptions = "file://$CONFDIR/2tld.inc";
  37. rule {
  38. suffix = "multi.surbl.org";
  39. symbol = "SURBL_MULTI";
  40. bits {
  41. JP_SURBL_MULTI = 64;
  42. AB_SURBL_MULTI = 32;
  43. MW_SURBL_MULTI = 16;
  44. PH_SURBL_MULTI = 8;
  45. WS_SURBL_MULTI = 4;
  46. SC_SURBL_MULTI = 2;
  47. }
  48. }
  49. rule {
  50. suffix = "multi.uribl.com";
  51. symbol = "URIBL_MULTI";
  52. bits {
  53. URIBL_BLACK = 2;
  54. URIBL_GREY = 4;
  55. URIBL_RED = 8;
  56. }
  57. }
  58. rule {
  59. suffix = "uribl.rambler.ru";
  60. symbol = "RAMBLER_URIBL";
  61. }
  62. rule {
  63. suffix = "dbl.spamhaus.org";
  64. symbol = "DBL";
  65. options = "noip";
  66. }
  67. rule {
  68. suffix = "uribl.spameatingmonkey.net";
  69. symbol = "SEM_URIBL_UNKNOWN";
  70. bits {
  71. SEM_URIBL = 2;
  72. }
  73. options = "noip";
  74. }
  75. rule {
  76. suffix = "fresh15.spameatingmonkey.net";
  77. symbol = "SEM_URIBL_FRESH15_UNKNOWN";
  78. bits {
  79. SEM_URIBL_FRESH15 = 2;
  80. }
  81. options = "noip";
  82. }
  83. }
  84. rbl {
  85. default_from = true;
  86. default_received = false;
  87. default_exclude_users = true;
  88. private_ips = "127.0.0.0/8 10.0.0.0/8 192.168.0.0/16 169.254.0.0/16 172.16.0.0/12 100.64.0.0/10 fc00::/7 fe80::/10 fec0::/10 ::1";
  89. rbls {
  90. spamhaus {
  91. symbol = "RBL_SPAMHAUS";
  92. rbl = "zen.spamhaus.org";
  93. ipv6 = true;
  94. returncodes {
  95. RBL_SPAMHAUS_SBL = "127.0.0.2";
  96. RBL_SPAMHAUS_CSS = "127.0.0.3";
  97. RBL_SPAMHAUS_XBL = "127.0.0.4";
  98. RBL_SPAMHAUS_XBL = "127.0.0.5";
  99. RBL_SPAMHAUS_XBL = "127.0.0.6";
  100. RBL_SPAMHAUS_XBL = "127.0.0.7";
  101. RBL_SPAMHAUS_PBL = "127.0.0.10";
  102. RBL_SPAMHAUS_PBL = "127.0.0.11";
  103. }
  104. }
  105. spamhaus_xbl {
  106. symbol = "RECEIVED_SPAMHAUS_XBL";
  107. rbl = "xbl.spamhaus.org";
  108. ipv6 = true;
  109. received = true;
  110. from = false;
  111. }
  112. spamhaus_swl {
  113. symbol = "RWL_SPAMHAUS_WL";
  114. rbl = "swl.spamhaus.org";
  115. ipv6 = true;
  116. returncodes {
  117. RWL_SPAMHAUS_WL_IND = "127.0.2.2";
  118. RWL_SPAMHAUS_WL_TRANS = "127.0.2.3";
  119. RWL_SPAMHAUS_WL_IND_EXP = "127.0.2.102";
  120. RWL_SPAMHAUS_WL_TRANS_EXP = "127.0.2.103";
  121. }
  122. }
  123. mailspike {
  124. symbol = "RBL_MAILSPIKE";
  125. rbl = "rep.mailspike.net";
  126. returncodes {
  127. #http://mailspike.net/usage.html
  128. RBL_MAILSPIKE_WORST = "127.0.0.10"
  129. RBL_MAILSPIKE_VERYBAD = "127.0.0.11"
  130. RBL_MAILSPIKE_BAD = "127.0.0.12"
  131. RBL_MAILSPIKE_SUSP = "127.0.0.13"
  132. RBL_MAILSPIKE_PROB = "127.0.0.14"
  133. RWL_MAILSPIKE_POSSIBLE = "127.0.0.17"
  134. RWL_MAILSPIKE_GOOD = "127.0.0.18"
  135. RWL_MAILSPIKE_VERYGOOD = "127.0.0.19"
  136. RWL_MAILSPIKE_EXCELLENT = "127.0.0.20"
  137. }
  138. }
  139. senderscore {
  140. symbol = "RBL_SENDERSCORE";
  141. rbl = "bl.score.senderscore.com";
  142. }
  143. abusech {
  144. symbol = "RBL_ABUSECH";
  145. rbl = "spam.abuse.ch";
  146. }
  147. uceprotect1 {
  148. symbol = "RBL_UCEPROTECT_LEVEL1";
  149. rbl = "dnsbl-1.uceprotect.net";
  150. }
  151. sorbs {
  152. symbol = "RBL_SORBS";
  153. rbl = "dnsbl.sorbs.net";
  154. returncodes {
  155. #http://www.sorbs.net/general/using.shtml
  156. RBL_SORBS_HTTP = "127.0.0.2"
  157. RBL_SORBS_SOCKS = "127.0.0.3"
  158. RBL_SORBS_MISC = "127.0.0.4"
  159. RBL_SORBS_SMTP = "127.0.0.5"
  160. RBL_SORBS_RECENT = "127.0.0.6"
  161. RBL_SORBS_WEB = "127.0.0.7"
  162. RBL_SORBS_DUL = "127.0.0.10"
  163. RBL_SORBS_BLOCK = "127.0.0.8"
  164. RBL_SORBS_ZOMBIE = "127.0.0.9"
  165. }
  166. }
  167. sem {
  168. symbol = "RBL_SEM";
  169. rbl = "bl.spameatingmonkey.net";
  170. }
  171. semIPv6 {
  172. symbol = "RBL_SEM_IPV6";
  173. rbl = "bl.ipv6.spameatingmonkey.net";
  174. ipv4 = false;
  175. ipv6 = true;
  176. }
  177. dnswl {
  178. symbol = "RCVD_IN_DNSWL";
  179. rbl = "list.dnswl.org";
  180. ipv6 = true;
  181. returncodes {
  182. RCVD_IN_DNSWL_NONE = "127.0.%d+.0";
  183. RCVD_IN_DNSWL_LOW = "127.0.%d+.1";
  184. RCVD_IN_DNSWL_MED = "127.0.%d+.2";
  185. RCVD_IN_DNSWL_HI = "127.0.%d+.3";
  186. DNSWL_BLOCKED = "127.0.0.255";
  187. }
  188. }
  189. rambleremails {
  190. symbol = RAMBLER_EMAILBL;
  191. rbl = email-bl.rambler.ru;
  192. from = false;
  193. emails = true;
  194. exclude_users = false;
  195. exclude_private_ips = false;
  196. exclude_local = false;
  197. }
  198. }
  199. }
  200. chartable {
  201. threshold = 0.300000;
  202. symbol = "R_MIXED_CHARSET";
  203. }
  204. once_received {
  205. good_host = "mail";
  206. bad_host = "static";
  207. bad_host = "dynamic";
  208. symbol_strict = "ONCE_RECEIVED_STRICT";
  209. symbol = "ONCE_RECEIVED";
  210. }
  211. #multimap {
  212. #}
  213. phishing {
  214. symbol = "PHISHING";
  215. }
  216. #emails {
  217. #}
  218. spf {
  219. spf_cache_size = 2k;
  220. spf_cache_expire = 1d;
  221. }
  222. dkim {
  223. dkim_cache_size = 2k;
  224. dkim_cache_expire = 1d;
  225. time_jitter = 6h;
  226. trusted_only = false;
  227. skip_multi = false;
  228. }
  229. ratelimit {
  230. limit = "to:100:0.033333333";
  231. limit = "to_ip:30:0.025";
  232. limit = "to_ip_from:20:0.01666666667";
  233. limit = "bounce_to:10:0.000555556";
  234. limit = "bounce_to_ip:5:0.000277778";
  235. limit = "user:20:0.01666666667";
  236. whitelisted_rcpts = "postmaster,mailer-daemon";
  237. max_rcpt = 5;
  238. }
  239. regexp {
  240. max_size = 1M;
  241. }
  242. ip_score {
  243. # servers = "localhost";
  244. # treshold = 100;
  245. # reject_score = 3;
  246. # no_action_score = -2;
  247. # add_header_score = 1;
  248. # whitelist = "file:///ip_map";
  249. }
  250. hfilter {
  251. helo_enabled = true;
  252. hostname_enabled = true;
  253. url_enabled = true;
  254. from_enabled = true;
  255. rcpt_enabled = true;
  256. mid_enabled = true;
  257. rcpt_enabled = true;
  258. }