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.

rspamd.xml.sample 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rspamd>
  3. <!-- Global section -->
  4. <lua src="@ETC_PREFIX@/rspamd/lua/rspamd.lua" />
  5. <!-- Options -->
  6. <options>
  7. <!-- Temporary directory -->
  8. <tempdir>/tmp</tempdir>
  9. <!-- Path to pid file -->
  10. <pidfile>/var/run/rspamd/rspamd.pid</pidfile>
  11. <!-- Turned on C filters -->
  12. <filters>regexp,surbl,chartable,fuzzy_check,spf</filters>
  13. <!-- Maximum size of statistics mapped in memory -->
  14. <statfile_pool_size>250M</statfile_pool_size>
  15. <!-- Raw mode is non-utf mode. In utf mode all messages are converted to utf8 (if possible) -->
  16. <raw_mode>yes</raw_mode>
  17. <!-- Check text attachements as ordinary text parts -->
  18. <check_attachements>no</check_attachements>
  19. <!-- If a rule has been met several times do not add additional score -->
  20. <one_shot>no</one_shot>
  21. <!-- DNS requests global timeout -->
  22. <dns_timeout>1s</dns_timeout>
  23. <!-- DNS retransmits count -->
  24. <dns_retransmits>5</dns_retransmits>
  25. <!-- File for saving settings of symbols cache -->
  26. <cache_file>/var/run/rspamd/symbols.cache</cache_file>
  27. </options>
  28. <!-- End of options section -->
  29. <!-- Logging section -->
  30. <logging>
  31. <level>info</level>
  32. <log_urls>yes</log_urls>
  33. <type>console</type>
  34. <!-- Other types
  35. <type filename="/var/log/rspamd/rspamd.log">file</type>
  36. <type facility="local7">syslog</type>
  37. -->
  38. <!-- Selective debug
  39. <debug_ip>127.0.0.1</debug_ip>
  40. <debug_symbols>SYMBOL1,SYMBOL2</debug_symbols>
  41. -->
  42. </logging>
  43. <!-- End of logging section -->
  44. <!-- Metrics section -->
  45. <metric>
  46. <name>default</name>
  47. <required_score>10.0</required_score>
  48. <!-- Sample actions -->
  49. <action>reject</action>
  50. <action>greylist:5</action>
  51. <action>add_header:5</action>
  52. <!-- Weights for symbols -->
  53. <!-- Subject is missing inside message -->
  54. <symbol weight="2.00" description="Subject is missing inside message">MISSING_SUBJECT</symbol>
  55. <!-- Message pretends to be send from Outlook but has 'strange' tags -->
  56. <symbol weight="2.10" description="Message pretends to be send from Outlook but has 'strange' tags ">FORGED_OUTLOOK_TAGS</symbol>
  57. <!-- Sender is forged (different From: header and smtp MAIL FROM: addresses) -->
  58. <symbol weight="5.00" description="Sender is forged (different From: header and smtp MAIL FROM: addresses)">FORGED_SENDER</symbol>
  59. <!-- Recipients seems to be autogenerated (works if recipients count is more than 5) -->
  60. <symbol weight="3.50" description="Recipients seems to be autogenerated (works if recipients count is more than 5)">SUSPICIOUS_RECIPS</symbol>
  61. <!-- Fake reply (has RE in subject, but has not References header) -->
  62. <symbol weight="6.00" description="Fake reply (has RE in subject, but has not References header)">FAKE_REPLY_C</symbol>
  63. <!-- Messages that have only HTML part -->
  64. <symbol weight="1.00" description="Messages that have only HTML part">MIME_HTML_ONLY</symbol>
  65. <!-- Forged yahoo msgid -->
  66. <symbol weight="2.00" description="Forged yahoo msgid">FORGED_MSGID_YAHOO</symbol>
  67. <!-- Forged The Bat! MUA headers -->
  68. <symbol weight="2.00" description="Forged The Bat! MUA headers">FORGED_MUA_THEBAT_BOUN</symbol>
  69. <!-- Charset is missing in a message -->
  70. <symbol weight="5.00" description="Charset is missing in a message">R_MISSING_CHARSET</symbol>
  71. <!-- Two received headers with ip addresses -->
  72. <symbol weight="2.00" description="Two received headers with ip addresses">RCVD_DOUBLE_IP_SPAM</symbol>
  73. <!-- Forged outlook HTML signature -->
  74. <symbol weight="5.00" description="Forged outlook HTML signature">FORGED_OUTLOOK_HTML</symbol>
  75. <!-- Recipients are absent or undisclosed -->
  76. <symbol weight="5.00" description="Recipients are absent or undisclosed">R_UNDISC_RCPT</symbol>
  77. <!-- White color on white background in HTML messages -->
  78. <symbol weight="9.00" description="White color on white background in HTML messages">R_WHITE_ON_WHITE</symbol>
  79. <!-- Short html part with a link to an image -->
  80. <symbol weight="3.00" description="Short html part with a link to an image">HTML_SHORT_LINK_IMG_2</symbol>
  81. <!-- Forged outlook MUA -->
  82. <symbol weight="3.00" description="Forged outlook MUA">FORGED_MUA_OUTLOOK</symbol>
  83. <!-- Forged outlook MUA, but from maillist -->
  84. <symbol weight="0.00" description="Forged outlook MUA, but from maillist">FORGED_MUA_OUTLOOK_MAILLIST</symbol>
  85. <!-- Suspicious boundary in header Content-Type -->
  86. <symbol weight="5.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY</symbol>
  87. <!-- Suspicious boundary in header Content-Type -->
  88. <symbol weight="4.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY2</symbol>
  89. <!-- Suspicious boundary in header Content-Type -->
  90. <symbol weight="3.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY3</symbol>
  91. <!-- Suspicious boundary in header Content-Type -->
  92. <symbol weight="4.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY4</symbol>
  93. <!-- Message pretends to be send from The Bat! but has forged Message-ID -->
  94. <symbol weight="4.00" description="Message pretends to be send from The Bat! but has forged Message-ID">FORGED_MUA_THEBAT_MSGID</symbol>
  95. <!-- Message pretends to be send from The Bat! but has forged Message-ID -->
  96. <symbol weight="3.00" description="Message pretends to be send from The Bat! but has forged Message-ID">FORGED_MUA_THEBAT_MSGID_UNKNOWN</symbol>
  97. <!-- Message pretends to be send from KMail but has forged Message-ID -->
  98. <symbol weight="3.00" description="Message pretends to be send from KMail but has forged Message-ID">FORGED_MUA_KMAIL_MSGID</symbol>
  99. <!-- Message pretends to be send from KMail but has forged Message-ID -->
  100. <symbol weight="2.50" description="Message pretends to be send from KMail but has forged Message-ID">FORGED_MUA_KMAIL_MSGID_UNKNOWN</symbol>
  101. <!-- Message pretends to be send from Opera Mail but has forged Message-ID -->
  102. <symbol weight="4.00" description="Message pretends to be send from Opera Mail but has forged Message-ID">FORGED_MUA_OPERA_MSGID</symbol>
  103. <!-- Message pretends to be send from suspicious Opera Mail/10.x (Windows) but has forged Message-ID, apparently from KMail -->
  104. <symbol weight="4.00" description="Message pretends to be send from suspicious Opera Mail/10.x (Windows) but has forged Message-ID, apparently from KMail">SUSPICIOUS_OPERA_10W_MSGID</symbol>
  105. <!-- Message pretends to be send from Mozilla Mail but has forged Message-ID -->
  106. <symbol weight="4.00" description="Message pretends to be send from Mozilla Mail but has forged Message-ID">FORGED_MUA_MOZILLA_MAIL_MSGID</symbol>
  107. <!-- Message pretends to be send from Mozilla Mail but has forged Message-ID -->
  108. <symbol weight="2.50" description="Message pretends to be send from Mozilla Mail but has forged Message-ID">FORGED_MUA_MOZILLA_MAIL_MSGID_UNKNOWN</symbol>
  109. <!-- Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID -->
  110. <symbol weight="4.00" description="Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID">FORGED_MUA_THUNDERBIRD_MSGID</symbol>
  111. <!-- Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID -->
  112. <symbol weight="2.50" description="Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID">FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN</symbol>
  113. <!-- Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID -->
  114. <symbol weight="4.00" description="Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID">FORGED_MUA_SEAMONKEY_MSGID</symbol>
  115. <!-- Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID -->
  116. <symbol weight="2.50" description="Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID">FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN</symbol>
  117. <!-- Fake helo for verizon provider -->
  118. <symbol weight="2.00" description="Fake helo for verizon provider">FM_FAKE_HELO_VERIZON</symbol>
  119. <!--Quoted reply-to from yahoo (seems to be forged) -->
  120. <symbol weight="2.00" description="Quoted reply-to from yahoo (seems to be forged)">REPTO_QUOTE_YAHOO</symbol>
  121. <!-- Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange) -->
  122. <symbol weight="5.00" description="Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange)">MISSING_MIMEOLE</symbol>
  123. <!-- To header is missing -->
  124. <symbol weight="2.00" description="To header is missing">MISSING_TO</symbol>
  125. <!-- From that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
  126. <symbol weight="1.5" description="From that contains encoded characters while base 64 is not needed as all symbols are 7bit">FROM_EXCESS_BASE64</symbol>
  127. <!-- From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
  128. <symbol weight="1.2" description="From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">FROM_EXCESS_QP</symbol>
  129. <!-- To that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
  130. <symbol weight="1.5" description="To that contains encoded characters while base 64 is not needed as all symbols are 7bit">TO_EXCESS_BASE64</symbol>
  131. <!-- To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
  132. <symbol weight="1.2" description="To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">TO_EXCESS_QP</symbol>
  133. <!-- Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
  134. <symbol weight="1.5" description="Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit">REPLYTO_EXCESS_BASE64</symbol>
  135. <!-- Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
  136. <symbol weight="1.2" description="Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">REPLYTO_EXCESS_QP</symbol>
  137. <!-- Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
  138. <symbol weight="1.5" description="Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit">CC_EXCESS_BASE64</symbol>
  139. <!-- Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
  140. <symbol weight="1.2" description="Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">CC_EXCESS_QP</symbol>
  141. <!-- Mixed characters in a message -->
  142. <symbol weight="5.00" description="Mixed characters in a message">R_MIXED_CHARSET</symbol>
  143. <!-- Recipients list seems to be sorted -->
  144. <symbol weight="3.50" description="Recipients list seems to be sorted">SORTED_RECIPS</symbol>
  145. <!-- Spambots signatures in received headers -->
  146. <symbol weight="3.00" description="Spambots signatures in received headers">R_RCVD_SPAMBOTS</symbol>
  147. <!-- To header seems to be autogenerated -->
  148. <symbol weight="2.00" description="To header seems to be autogenerated">R_TO_SEEMS_AUTO</symbol>
  149. <!-- Subject needs encoding -->
  150. <symbol weight="1.00" description="Subject needs encoding">SUBJECT_NEEDS_ENCODING</symbol>
  151. <!-- Spam string at the end of message to make statistics faults 0-->
  152. <symbol weight="3.84" description="Spam string at the end of message to make statistics faults 0">TRACKER_ID</symbol>
  153. <!-- No space in from header -->
  154. <symbol weight="1.00" description="No space in from header">R_NO_SPACE_IN_FROM</symbol>
  155. <!-- Subject seems to be spam -->
  156. <symbol weight="8.00" description="Subject seems to be spam">R_SAJDING</symbol>
  157. <!-- Detects bad content-transfer-encoding for text parts -->
  158. <symbol weight="3.00" description="Detects bad content-transfer-encoding for text parts">R_BAD_CTE_7BIT</symbol>
  159. <!-- Flash redirect on imageshack.us -->
  160. <symbol weight="10.00" description="Flash redirect on imageshack.us">R_FLASH_REDIR_IMGSHACK</symbol>
  161. <!-- Message id is incorrect -->
  162. <symbol weight="5.00" description="Message id is incorrect">INVALID_MSGID</symbol>
  163. <!-- Message id is missing -->
  164. <symbol weight="3.00" description="Message id is missing ">MISSING_MID</symbol>
  165. <!-- Recipients are not the same as RCPT TO: mail command -->
  166. <symbol weight="3.00" description="Recipients are not the same as RCPT TO: mail command">FORGED_RECIPIENTS</symbol>
  167. <!-- Recipients are not the same as RCPT TO: mail command, but from maillist -->
  168. <symbol weight="0.00" description="Recipients are not the same as RCPT TO: mail command, but from maillist">FORGED_RECIPIENTS_MAILLIST</symbol>
  169. <!-- Forged Exchange messages -->
  170. <symbol weight="2.00" description="Forged Exchange messages ">RATWARE_MS_HASH</symbol>
  171. <!-- Reply-type in content-type -->
  172. <symbol weight="1.00" description="Reply-type in content-type">STOX_REPLY_TYPE</symbol>
  173. <!-- IP in received headers is in PBL -->
  174. <symbol weight="3.00" description="IP in received headers is in PBL">R_IP_PBL</symbol>
  175. <!-- One received header in a message -->
  176. <symbol weight="1.00" description="One received header in a message ">ONCE_RECEIVED</symbol>
  177. <!-- One received header with 'bad' patterns inside -->
  178. <symbol weight="4.00" description="One received header with 'bad' patterns inside">ONCE_RECEIVED_STRICT</symbol>
  179. <!-- Received headers contains addresses from RBL -->
  180. <symbol weight="1.00" description="Received headers contains addresses from RBL">RECEIVED_RBL</symbol>
  181. <!-- Text and HTML parts differ -->
  182. <symbol weight="3.00" description="Text and HTML parts differ">R_PARTS_DIFFER</symbol>
  183. <!-- Only Content-Type header without other MIME headers -->
  184. <symbol weight="2.00" description="Only Content-Type header without other MIME headers">MIME_HEADER_CTYPE_ONLY</symbol>
  185. <!-- Message contains empty parts and image -->
  186. <symbol weight="2.00" description="Message contains empty parts and image ">R_EMPTY_IMAGE</symbol>
  187. <!-- Drugs patterns inside message -->
  188. <symbol weight="2.00" description="Drugs patterns inside message">DRUGS_MANYKINDS</symbol>
  189. <!-- Specific drugs signatures -->
  190. <symbol weight="2.00" description="">DRUGS_ANXIETY</symbol>
  191. <symbol weight="2.00" description="">DRUGS_MUSCLE</symbol>
  192. <symbol weight="2.00" description="">DRUGS_ANXIETY_EREC</symbol>
  193. <symbol weight="2.00" description="">DRUGS_DIET</symbol>
  194. <symbol weight="2.00" description="">DRUGS_ERECTILE</symbol>
  195. <!-- 2 or 3 'advance fee' patterns in a message -->
  196. <symbol weight="3.30" description="2 'advance fee' patterns in a message">ADVANCE_FEE_2</symbol>
  197. <symbol weight="2.12" description="3 'advance fee' patterns in a message">ADVANCE_FEE_3</symbol>
  198. <!-- Lotto signatures -->
  199. <symbol weight="8.00" description="Lotto signatures">R_LOTTO</symbol>
  200. <!-- Statistics -->
  201. <symbol weight="3.00" description="Message probably spam, probability: ">BAYES_SPAM</symbol>
  202. <symbol weight="-3.00" description="Message probably ham, probability: ">BAYES_HAM</symbol>
  203. <!-- Fuzzy lists example -->
  204. <symbol weight="1.00" description="">R_FUZZY</symbol>
  205. <symbol weight="1.00" description="">R_FUZZY1</symbol>
  206. <symbol weight="1.00" description="">R_FUZZY2</symbol>
  207. <symbol weight="1.00" description="">R_FUZZY3</symbol>
  208. <!-- SPF rules -->
  209. <symbol weight="3.00" description="SPF verification failed">R_SPF_FAIL</symbol>
  210. <symbol weight="1.00" description="SPF verification soft-failed">R_SPF_SOFTFAIL</symbol>
  211. <symbol weight="-3.00" description="SPF verification alowed">R_SPF_ALLOW</symbol>
  212. <!-- Message seems to be from maillist -->
  213. <symbol weight="-2.00" description="Message seems to be from maillist">MAILLIST</symbol>
  214. <!-- multi.surbl.org lists (more details at http://www.surbl.org) -->
  215. <!-- Phishing and malware sites -->
  216. <symbol weight="5.50" description="Phishing and malware sites">PH_SURBL_MULTI</symbol>
  217. <!-- Outblaze URI Blacklist -->
  218. <symbol weight="5.50" description="Outblaze URI Blacklist">OB_SURBL_MULTI</symbol>
  219. <!-- AbuseButler web sites -->
  220. <symbol weight="5.50" description="AbuseButler web sites">AB_SURBL_MULTI</symbol>
  221. <!-- SpamCop web sites -->
  222. <symbol weight="5.50" description="SpamCop web sites">SC_SURBL_MULTI</symbol>
  223. <!-- jwSpamSpy + Prolocation sites -->
  224. <symbol weight="5.50" description="jwSpamSpy + Prolocation sites">JP_SURBL_MULTI</symbol>
  225. <!-- sa-blacklist web sites -->
  226. <symbol weight="5.50" description="sa-blacklist web sites ">WS_SURBL_MULTI</symbol>
  227. <!-- rambler.ru uribl -->
  228. <symbol weight="9.50" description="rambler.ru uribl">RAMBLER_URIBL</symbol>
  229. <!-- rambler.ru emailbl -->
  230. <symbol weight="9.50" description="rambler.ru emailbl">RAMBLER_EMAILBL</symbol>
  231. <!-- Phished mail -->
  232. <symbol weight="5.0" description="Phished mail">PHISHING</symbol>
  233. <!-- Tabs as delimiters between header names and header values -->
  234. <symbol weight="1.0" description="Header From begins with tab">HEADER_FROM_DELIMITER_TAB</symbol>
  235. <symbol weight="1.0" description="Header To begins with tab">HEADER_TO_DELIMITER_TAB</symbol>
  236. <symbol weight="1.0" description="Header Cc begins with tab">HEADER_CC_DELIMITER_TAB</symbol>
  237. <symbol weight="1.0" description="Header Reply-To begins with tab">HEADER_REPLYTO_DELIMITER_TAB</symbol>
  238. <symbol weight="1.0" description="Header Date begins with tab">HEADER_DATE_DELIMITER_TAB</symbol>
  239. <!-- Empty delimiters between header names and header values -->
  240. <symbol weight="1.0" description="Header From has no delimiter between header name and header value">HEADER_FROM_EMPTY_DELIMITER</symbol>
  241. <symbol weight="1.0" description="Header To has no delimiter between header name and header value">HEADER_TO_EMPTY_DELIMITER</symbol>
  242. <symbol weight="1.0" description="Header Cc has no delimiter between header name and header value">HEADER_CC_EMPTY_DELIMITER</symbol>
  243. <symbol weight="1.0" description="Header Reply-To has no delimiter between header name and header value">HEADER_REPLYTO_EMPTY_DELIMITER</symbol>
  244. <symbol weight="1.0" description="Header Date has no delimiter between header name and header value">HEADER_DATE_EMPTY_DELIMITER</symbol>
  245. <!-- Received headers -->
  246. <symbol weight="4.0" description="Header Received has raw illegal character">RCVD_ILLEGAL_CHARS</symbol>
  247. <symbol weight="4.0" description="Fake helo mail.ru in header Received from non mail.ru sender address">FAKE_RECEIVED_mail_ru</symbol>
  248. <symbol weight="4.0" description="Fake smtp.yandex.ru Received">FAKE_RECEIVED_smtp_yandex_ru</symbol>
  249. <symbol weight="3.6" description="Forged generic Received">FORGED_GENERIC_RECEIVED</symbol>
  250. <symbol weight="3.6" description="Forged generic Received">FORGED_GENERIC_RECEIVED2</symbol>
  251. <symbol weight="3.6" description="Forged generic Received">FORGED_GENERIC_RECEIVED3</symbol>
  252. <symbol weight="3.6" description="Forged generic Received">FORGED_GENERIC_RECEIVED4</symbol>
  253. <symbol weight="4.6" description="Forged generic Received">FORGED_GENERIC_RECEIVED5</symbol>
  254. <symbol weight="3.0" description="Invalid Postfix Received">INVALID_POSTFIX_RECEIVED</symbol>
  255. <symbol weight="5.0" description="Invalid Exim Received">INVALID_EXIM_RECEIVED</symbol>
  256. <symbol weight="3.0" description="Invalid Exim Received">INVALID_EXIM_RECEIVED2</symbol>
  257. </metric>
  258. <!-- End of metrics section -->
  259. <!-- Composites section -->
  260. <composite name="FORGED_RECIPIENTS_MAILLIST">FORGED_RECIPIENTS &amp; -MAILLIST</composite>
  261. <composite name="FORGED_MUA_OUTLOOK_MAILLIST">FORGED_MUA_OUTLOOK &amp; -MAILLIST</composite>
  262. <!-- End of composites section -->
  263. <!-- Workers section -->
  264. <worker>
  265. <type>fuzzy</type>
  266. <bind_socket>localhost:11335</bind_socket>
  267. <count>1</count>
  268. <maxfiles>2048</maxfiles>
  269. <maxcore>0</maxcore>
  270. <!-- Other params -->
  271. <hashfile>/tmp/fuzzy.db</hashfile>
  272. <use_judy>yes</use_judy>
  273. </worker>
  274. <worker>
  275. <type>controller</type>
  276. <bind_socket>localhost:11334</bind_socket>
  277. <count>1</count>
  278. <maxfiles>2048</maxfiles>
  279. <maxcore>0</maxcore>
  280. <!-- Other params -->
  281. <password>q1</password>
  282. </worker>
  283. <worker>
  284. <type>normal</type>
  285. <bind_socket>*:11333</bind_socket>
  286. <count>1</count>
  287. <maxfiles>2048</maxfiles>
  288. <maxcore>0</maxcore>
  289. <!-- Other params -->
  290. </worker>
  291. <!-- End of workers section -->
  292. <!-- Modules section -->
  293. <!-- fuzzy_check -->
  294. <module name="fuzzy_check">
  295. <servers>localhost:11335</servers>
  296. <symbol>R_FUZZY</symbol>
  297. <min_bytes>300</min_bytes>
  298. <max_score>10</max_score>
  299. <mime_types>application/pdf</mime_types>
  300. <fuzzy_map>1:R_FUZZY1:10,2:R_FUZZY2:5,3:R_FUZZY3:-2.1</fuzzy_map>
  301. </module>
  302. <!-- forged_recipients -->
  303. <module name="forged_recipients">
  304. <symbol_sender>FORGED_SENDER</symbol_sender>
  305. <symbol_rcpt>FORGED_RECIPIENTS</symbol_rcpt>
  306. </module>
  307. <!-- maillist -->
  308. <module name="maillist">
  309. <symbol>MAILLIST</symbol>
  310. </module>
  311. <!-- surbl -->
  312. <module name="surbl">
  313. <whitelist>file://@ETC_PREFIX@/rspamd/surbl-whitelist.inc</whitelist>
  314. <exceptions>file://@ETC_PREFIX@/rspamd/2tld.inc</exceptions>
  315. <bit_64>JP</bit_64>
  316. <bit_32>AB</bit_32>
  317. <bit_16>OB</bit_16>
  318. <bit_8>PH</bit_8>
  319. <bit_4>WS</bit_4>
  320. <bit_2>SC</bit_2>
  321. <suffix_RAMBLER_URIBL>uribl.rambler.ru</suffix_RAMBLER_URIBL>
  322. <option name="suffix_%b_SURBL_MULTI">multi.surbl.org</option>
  323. <redirector_read_timeout>10s</redirector_read_timeout>
  324. <redirector_connect_timeout>1s</redirector_connect_timeout>
  325. <redirector>localhost:8080</redirector>
  326. </module>
  327. <!-- received_rbl -->
  328. <module name="received_rbl">
  329. <symbol>RECEIVED_RBL</symbol>
  330. <rbl>pbl.spamhaus.org</rbl>
  331. <rbl>xbl.spamhaus.org</rbl>
  332. <rbl>insecure-bl.rambler.ru</rbl>
  333. </module>
  334. <!-- whitelist -->
  335. <!-- Example of using HTTP maps for whitelisting
  336. <module name="whitelist">
  337. <ip_whitelist>http://cebka.pp.ru/stuff/grey_whitelist.conf</ip_whitelist>
  338. <symbol_ip>WHITELIST_IP</symbol_ip>
  339. </module>
  340. -->
  341. <!-- chartable -->
  342. <module name="chartable">
  343. <threshold>0.1</threshold>
  344. <symbol>R_MIXED_CHARSET</symbol>
  345. </module>
  346. <!-- once_received -->
  347. <module name="once_received">
  348. <good_host>mail</good_host>
  349. <bad_host>static</bad_host>
  350. <bad_host>dynamic</bad_host>
  351. <symbol_strict>ONCE_RECEIVED_STRICT</symbol_strict>
  352. <symbol>ONCE_RECEIVED</symbol>
  353. </module>
  354. <!-- multimap -->
  355. <module name="multimap">
  356. <!--
  357. <rule>type = header, header = To, pattern = @(.+)>?$, map = file://@ETC_PREFIX@/rspamd/rcpt_test, symbol = R_RCPT_WHITELIST</rule>
  358. <rule>type = ip, map = file://@ETC_PREFIX@/rspamd/ip_test, symbol = R_IP_WHITELIST</rule>
  359. -->
  360. <rule>type = dnsbl, map = pbl.spamhaus.org, symbol = R_IP_PBL</rule>
  361. </module>
  362. <!-- phishing -->
  363. <module name="phishing">
  364. <symbol>PHISHING</symbol>
  365. <!-- <domains>file://path/to/domains</domains> -->
  366. </module>
  367. <!-- Trie module -->
  368. <!--
  369. <module name="trie">
  370. <option name="rule">TRIE1:bad pattern</option>
  371. </module>
  372. -->
  373. <!-- Emails blacklist -->
  374. <module name="emails">
  375. <option name="rule">symbol = RAMBLER_EMAILBL, dnsbl = email-bl.rambler.ru, domain_only = false</option>
  376. <!--
  377. <option name="rule">symbol = R_BAD_EMAIL1, map = file:///tmp/emails.list, domain_only = true</option>
  378. -->
  379. </module>
  380. <!-- End of modules section -->
  381. <!-- Classifiers section -->
  382. <!--
  383. <classifier type="winnow">
  384. <tokenizer>osb-text</tokenizer>
  385. <metric>default</metric>
  386. <min_tokens>20</min_tokens>
  387. <statfile>
  388. <symbol>WINNOW_HAM</symbol>
  389. <size>100M</size>
  390. <path>/var/run/rspamd/data.ham</path>
  391. </statfile>
  392. <statfile>
  393. <symbol>WINNOW_SPAM</symbol>
  394. <size>100M</size>
  395. <path>/var/run/rspamd/data.spam</path>
  396. </statfile>
  397. </classifier>
  398. -->
  399. <!-- Example of slave
  400. <classifier type="bayes">
  401. <tokenizer>osb-text</tokenizer>
  402. <metric>default</metric>
  403. <min_tokens>10</min_tokens>
  404. <learn_threshold>0.2</learn_threshold>
  405. <statfile>
  406. <symbol>BAYES_HAM</symbol>
  407. <size>10M</size>
  408. <path>/var/run/rspamd/bayes_slave.ham</path>
  409. <binlog_master>localhost:11334</binlog_master>
  410. <binlog>slave</binlog>
  411. </statfile>
  412. <statfile>
  413. <symbol>BAYES_SPAM</symbol>
  414. <size>10M</size>
  415. <path>/var/run/rspamd/bayes_slave.spam</path>
  416. <binlog>slave</binlog>
  417. <binlog_master>localhost:11334</binlog_master>
  418. </statfile>
  419. </classifier>
  420. -->
  421. <classifier type="bayes">
  422. <tokenizer>osb-text</tokenizer>
  423. <metric>default</metric>
  424. <min_tokens>10</min_tokens>
  425. <statfile>
  426. <symbol>BAYES_HAM</symbol>
  427. <size>10M</size>
  428. <path>/var/run/rspamd/bayes.ham</path>
  429. <binlog>master</binlog>
  430. </statfile>
  431. <statfile>
  432. <symbol>BAYES_SPAM</symbol>
  433. <size>10M</size>
  434. <path>/var/run/rspamd/bayes.spam</path>
  435. <binlog>master</binlog>
  436. </statfile>
  437. </classifier>
  438. <!-- End of classifiers section -->
  439. <!-- Modules section -->
  440. <modules>
  441. <path>@ETC_PREFIX@/rspamd/plugins/lua/</path>
  442. </modules>
  443. <!-- End of modules section -->
  444. </rspamd>