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.

metrics.conf 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  1. # Metrics settings
  2. # Please don't modify this file as your changes might be overwritten with
  3. # the next update.
  4. #
  5. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  6. # parameters defined on the top level
  7. #
  8. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  9. # parameters defined on the top level
  10. #
  11. # For specific modules or configuration you can also modify
  12. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  13. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  14. #
  15. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  16. metric {
  17. name = "default";
  18. # If this param is set to non-zero
  19. # then a metric would accept all symbols
  20. # unknown_weight = 1.0
  21. actions {
  22. reject = 15;
  23. add_header = 6;
  24. greylist = 4;
  25. }
  26. group "header" {
  27. symbol "MISSING_SUBJECT" {
  28. weight = 2.0;
  29. description = "Subject is missing inside message";
  30. }
  31. symbol "FORGED_OUTLOOK_TAGS" {
  32. weight = 2.100000;
  33. description = "Message pretends to be send from Outlook but has 'strange' tags ";
  34. }
  35. symbol "FORGED_SENDER" {
  36. weight = 0.30;
  37. description = "Sender is forged (different From: header and smtp MAIL FROM: addresses)";
  38. }
  39. symbol "SUSPICIOUS_RECIPS" {
  40. weight = 1.500000;
  41. description = "Recipients seems to be autogenerated (works if recipients count is more than 5)";
  42. }
  43. symbol "FAKE_REPLY_C" {
  44. weight = 6.0;
  45. description = "Fake reply (has RE in subject, but has not References header)";
  46. }
  47. symbol "MIME_HTML_ONLY" {
  48. weight = 1.0;
  49. description = "Messages that have only HTML part";
  50. }
  51. symbol "FORGED_MSGID_YAHOO" {
  52. weight = 2.0;
  53. description = "Forged yahoo msgid";
  54. }
  55. symbol "FORGED_MUA_THEBAT_BOUN" {
  56. weight = 2.0;
  57. description = "Forged The Bat! MUA headers";
  58. }
  59. symbol "R_MISSING_CHARSET" {
  60. weight = 5.0;
  61. description = "Charset is missing in a message";
  62. }
  63. symbol "RCVD_DOUBLE_IP_SPAM" {
  64. weight = 2.0;
  65. description = "Two received headers with ip addresses";
  66. }
  67. symbol "FORGED_OUTLOOK_HTML" {
  68. weight = 5.0;
  69. description = "Forged outlook HTML signature";
  70. }
  71. symbol "R_UNDISC_RCPT" {
  72. weight = 5.0;
  73. description = "Recipients are absent or undisclosed";
  74. }
  75. symbol "FM_FAKE_HELO_VERIZON" {
  76. weight = 2.0;
  77. description = "Fake helo for verizon provider";
  78. }
  79. symbol "REPTO_QUOTE_YAHOO" {
  80. weight = 2.0;
  81. description = "Quoted reply-to from yahoo (seems to be forged)";
  82. }
  83. symbol "MISSING_MIMEOLE" {
  84. weight = 5.0;
  85. description = "Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange)";
  86. }
  87. symbol "MISSING_TO" {
  88. weight = 2.0;
  89. description = "To header is missing";
  90. }
  91. symbol "FROM_EXCESS_BASE64" {
  92. weight = 1.5;
  93. description = "From that contains encoded characters while base 64 is not needed as all symbols are 7bit";
  94. }
  95. symbol "FROM_EXCESS_QP" {
  96. weight = 1.2;
  97. description = "From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
  98. }
  99. symbol "TO_EXCESS_BASE64" {
  100. weight = 1.5;
  101. description = "To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
  102. }
  103. symbol "TO_EXCESS_QP" {
  104. weight = 1.2;
  105. description = "To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
  106. }
  107. symbol "REPLYTO_EXCESS_BASE64" {
  108. weight = 1.5;
  109. description = "Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit";
  110. }
  111. symbol "REPLYTO_EXCESS_QP" {
  112. weight = 1.2;
  113. description = "Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
  114. }
  115. symbol "CC_EXCESS_BASE64" {
  116. weight = 1.5;
  117. description = "Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit";
  118. }
  119. symbol "CC_EXCESS_QP" {
  120. weight = 1.2;
  121. description = "Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit";
  122. }
  123. symbol "R_MIXED_CHARSET" {
  124. weight = 5.0;
  125. description = "Mixed characters in a message";
  126. }
  127. symbol "SORTED_RECIPS" {
  128. weight = 3.500000;
  129. description = "Recipients list seems to be sorted";
  130. }
  131. symbol "R_RCVD_SPAMBOTS" {
  132. weight = 3.0;
  133. description = "Spambots signatures in received headers";
  134. }
  135. symbol "SUBJECT_NEEDS_ENCODING" {
  136. weight = 1.0;
  137. description = "Subject needs encoding";
  138. }
  139. symbol "TRACKER_ID" {
  140. weight = 3.84;
  141. description = "Spam string at the end of message to make statistics faults 0";
  142. }
  143. symbol "R_NO_SPACE_IN_FROM" {
  144. weight = 1.0;
  145. description = "No space in from header";
  146. }
  147. symbol "R_SAJDING" {
  148. weight = 8.0;
  149. description = "Subject seems to be spam";
  150. }
  151. symbol "R_BAD_CTE_7BIT" {
  152. weight = 3.0;
  153. description = "Detects bad content-transfer-encoding for text parts";
  154. }
  155. symbol "R_FLASH_REDIR_IMGSHACK" {
  156. weight = 10.0;
  157. description = "Flash redirect on imageshack.us";
  158. }
  159. symbol "INVALID_MSGID" {
  160. weight = 1.7;
  161. description = "Message id is incorrect";
  162. }
  163. symbol "MISSING_MID" {
  164. weight = 2.5;
  165. description = "Message id is missing ";
  166. }
  167. symbol "FORGED_RECIPIENTS" {
  168. weight = 2.0;
  169. description = "Recipients are not the same as RCPT TO: mail command";
  170. }
  171. symbol "FORGED_RECIPIENTS_MAILLIST" {
  172. weight = 0.0;
  173. description = "Recipients are not the same as RCPT TO: mail command, but a message from a maillist";
  174. }
  175. symbol "FORGED_SENDER_MAILLIST" {
  176. weight = 0.0;
  177. description = "Sender is not the same as MAIL FROM: envelope, but a message is from a maillist";
  178. }
  179. symbol "RATWARE_MS_HASH" {
  180. weight = 2.0;
  181. description = "Forged Exchange messages";
  182. }
  183. symbol "STOX_REPLY_TYPE" {
  184. weight = 1.0;
  185. description = "Reply-type in content-type";
  186. }
  187. symbol "ONCE_RECEIVED" {
  188. weight = 0.1;
  189. description = "One received header in a message";
  190. }
  191. symbol "RDNS_NONE" {
  192. weight = 1.0;
  193. description = "Cannot resolve reverse DNS for sender's IP";
  194. }
  195. symbol "ONCE_RECEIVED_STRICT" {
  196. weight = 4.0;
  197. description = "One received header with 'bad' patterns inside";
  198. }
  199. symbol "MIME_HEADER_CTYPE_ONLY" {
  200. weight = 2.0;
  201. description = "Only Content-Type header without other MIME headers";
  202. }
  203. symbol "MAILLIST" {
  204. weight = -0.2;
  205. description = "Message seems to be from maillist";
  206. }
  207. symbol "HEADER_FROM_DELIMITER_TAB" {
  208. weight = 1.0;
  209. description = "Header From begins with tab";
  210. }
  211. symbol "HEADER_TO_DELIMITER_TAB" {
  212. weight = 1.0;
  213. description = "Header To begins with tab";
  214. }
  215. symbol "HEADER_CC_DELIMITER_TAB" {
  216. weight = 1.0;
  217. description = "Header Cc begins with tab";
  218. }
  219. symbol "HEADER_REPLYTO_DELIMITER_TAB" {
  220. weight = 1.0;
  221. description = "Header Reply-To begins with tab";
  222. }
  223. symbol "HEADER_DATE_DELIMITER_TAB" {
  224. weight = 1.0;
  225. description = "Header Date begins with tab";
  226. }
  227. symbol "HEADER_FROM_EMPTY_DELIMITER" {
  228. weight = 1.0;
  229. description = "Header From has no delimiter between header name and header value";
  230. }
  231. symbol "HEADER_TO_EMPTY_DELIMITER" {
  232. weight = 1.0;
  233. description = "Header To has no delimiter between header name and header value";
  234. }
  235. symbol "HEADER_CC_EMPTY_DELIMITER" {
  236. weight = 1.0;
  237. description = "Header Cc has no delimiter between header name and header value";
  238. }
  239. symbol "HEADER_REPLYTO_EMPTY_DELIMITER" {
  240. weight = 1.0;
  241. description = "Header Reply-To has no delimiter between header name and header value";
  242. }
  243. symbol "HEADER_DATE_EMPTY_DELIMITER" {
  244. weight = 1.0;
  245. description = "Header Date has no delimiter between header name and header value";
  246. }
  247. symbol "RCVD_ILLEGAL_CHARS" {
  248. weight = 4.0;
  249. description = "Header Received has raw illegal character";
  250. }
  251. symbol "FAKE_RECEIVED_mail_ru" {
  252. weight = 4.0;
  253. description = "Fake helo mail.ru in header Received from non mail.ru sender address";
  254. }
  255. symbol "FAKE_RECEIVED_smtp_yandex_ru" {
  256. weight = 4.0;
  257. description = "Fake smtp.yandex.ru Received";
  258. }
  259. symbol "FORGED_GENERIC_RECEIVED" {
  260. weight = 3.6;
  261. description = "Forged generic Received";
  262. }
  263. symbol "FORGED_GENERIC_RECEIVED2" {
  264. weight = 3.6;
  265. description = "Forged generic Received";
  266. }
  267. symbol "FORGED_GENERIC_RECEIVED3" {
  268. weight = 3.6;
  269. description = "Forged generic Received";
  270. }
  271. symbol "FORGED_GENERIC_RECEIVED4" {
  272. weight = 3.6;
  273. description = "Forged generic Received";
  274. }
  275. symbol "FORGED_GENERIC_RECEIVED5" {
  276. weight = 4.6;
  277. description = "Forged generic Received";
  278. }
  279. symbol "INVALID_POSTFIX_RECEIVED" {
  280. weight = 3.0;
  281. description = "Invalid Postfix Received";
  282. }
  283. }
  284. group "mua" {
  285. symbol "FORGED_MUA_THEBAT_MSGID" {
  286. weight = 4.0;
  287. description = "Message pretends to be send from The Bat! but has forged Message-ID";
  288. }
  289. symbol "FORGED_MUA_THEBAT_MSGID_UNKNOWN" {
  290. weight = 3.0;
  291. description = "Message pretends to be send from The Bat! but has forged Message-ID";
  292. }
  293. symbol "FORGED_MUA_KMAIL_MSGID" {
  294. weight = 3.0;
  295. description = "Message pretends to be send from KMail but has forged Message-ID";
  296. }
  297. symbol "FORGED_MUA_KMAIL_MSGID_UNKNOWN" {
  298. weight = 2.5;
  299. description = "Message pretends to be send from KMail but has forged Message-ID";
  300. }
  301. symbol "FORGED_MUA_OPERA_MSGID" {
  302. weight = 4.0;
  303. description = "Message pretends to be send from Opera Mail but has forged Message-ID";
  304. }
  305. symbol "SUSPICIOUS_OPERA_10W_MSGID" {
  306. weight = 4.0;
  307. description = "Message pretends to be send from suspicious Opera Mail/10.x (Windows) but has forged Message-ID, apparently from KMail";
  308. }
  309. symbol "FORGED_MUA_MOZILLA_MAIL_MSGID" {
  310. weight = 4.0;
  311. description = "Message pretends to be send from Mozilla Mail but has forged Message-ID";
  312. }
  313. symbol "FORGED_MUA_MOZILLA_MAIL_MSGID_UNKNOWN" {
  314. weight = 2.5;
  315. description = "Message pretends to be send from Mozilla Mail but has forged Message-ID";
  316. }
  317. symbol "FORGED_MUA_THUNDERBIRD_MSGID" {
  318. weight = 4.0;
  319. description = "Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID";
  320. }
  321. symbol "FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN" {
  322. weight = 2.5;
  323. description = "Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID";
  324. }
  325. symbol "FORGED_MUA_SEAMONKEY_MSGID" {
  326. weight = 4.0;
  327. description = "Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID";
  328. }
  329. symbol "FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN" {
  330. weight = 2.5;
  331. description = "Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID";
  332. }
  333. symbol "FORGED_MUA_OUTLOOK" {
  334. weight = 3.0;
  335. description = "Forged outlook MUA";
  336. }
  337. symbol "FORGED_MUA_MAILLIST" {
  338. weight = 0.0;
  339. description = "Avoid false positives for FORGED_MUA_* in maillist";
  340. }
  341. }
  342. group "body" {
  343. symbol "R_WHITE_ON_WHITE" {
  344. weight = 9.0;
  345. description = "White color on white background in HTML messages";
  346. }
  347. symbol "HTML_SHORT_LINK_IMG_1" {
  348. weight = 3.0;
  349. description = "Short html part with a link to an image";
  350. }
  351. symbol "HTML_SHORT_LINK_IMG_2" {
  352. weight = 1.0;
  353. description = "Short html part with a link to an image";
  354. }
  355. symbol "HTML_SHORT_LINK_IMG_3" {
  356. weight = 0.5;
  357. description = "Short html part with a link to an image";
  358. }
  359. symbol "SUSPICIOUS_BOUNDARY" {
  360. weight = 5.0;
  361. description = "Suspicious boundary in header Content-Type";
  362. }
  363. symbol "SUSPICIOUS_BOUNDARY2" {
  364. weight = 4.0;
  365. description = "Suspicious boundary in header Content-Type";
  366. }
  367. symbol "SUSPICIOUS_BOUNDARY3" {
  368. weight = 3.0;
  369. description = "Suspicious boundary in header Content-Type";
  370. }
  371. symbol "SUSPICIOUS_BOUNDARY4" {
  372. weight = 4.0;
  373. description = "Suspicious boundary in header Content-Type";
  374. }
  375. symbol "R_PARTS_DIFFER" {
  376. weight = 1.0;
  377. description = "Text and HTML parts differ";
  378. }
  379. symbol "R_EMPTY_IMAGE" {
  380. weight = 2.0;
  381. description = "Message contains empty parts and image";
  382. }
  383. symbol "DRUGS_MANYKINDS" {
  384. weight = 2.0;
  385. description = "Drugs patterns inside message";
  386. }
  387. symbol "DRUGS_ANXIETY" {
  388. weight = 2.0;
  389. description = "";
  390. }
  391. symbol "DRUGS_MUSCLE" {
  392. weight = 2.0;
  393. description = "";
  394. }
  395. symbol "DRUGS_ANXIETY_EREC" {
  396. weight = 2.0;
  397. description = "";
  398. }
  399. symbol "DRUGS_DIET" {
  400. weight = 2.0;
  401. description = "";
  402. }
  403. symbol "DRUGS_ERECTILE" {
  404. weight = 2.0;
  405. description = "";
  406. }
  407. symbol "ADVANCE_FEE_2" {
  408. weight = 3.300000;
  409. description = "2 'advance fee' patterns in a message";
  410. }
  411. symbol "ADVANCE_FEE_3" {
  412. weight = 2.120000;
  413. description = "3 'advance fee' patterns in a message";
  414. }
  415. symbol "R_LOTTO" {
  416. weight = 8.0;
  417. description = "Lotto signatures";
  418. }
  419. }
  420. group "rbl" {
  421. symbol "DNSWL_BLOCKED" {
  422. weight = 0.0;
  423. description = "Resolver blocked due to excessive queries";
  424. }
  425. symbol "RCVD_IN_DNSWL" {
  426. weight = 0.0;
  427. description = "Unrecognised result from dnswl.org";
  428. }
  429. symbol "RCVD_IN_DNSWL_NONE" {
  430. weight = 0.0;
  431. description = "Sender listed at http://www.dnswl.org, low none";
  432. }
  433. symbol "RCVD_IN_DNSWL_LOW" {
  434. weight = 0.0;
  435. description = "Sender listed at http://www.dnswl.org, low trust";
  436. }
  437. symbol "RCVD_IN_DNSWL_MED" {
  438. weight = 0.0;
  439. description = "Sender listed at http://www.dnswl.org, medium trust";
  440. }
  441. symbol "RCVD_IN_DNSWL_HI" {
  442. weight = 0.0;
  443. description = "Sender listed at http://www.dnswl.org, high trust";
  444. }
  445. symbol "RBL_SPAMHAUS" {
  446. weight = 0.0;
  447. description = "Unrecognised result from Spamhaus zen";
  448. }
  449. symbol "RBL_SPAMHAUS_SBL" {
  450. weight = 2.0;
  451. description = "From address is listed in zen sbl";
  452. }
  453. symbol "RBL_SPAMHAUS_CSS" {
  454. weight = 2.0;
  455. description = "From address is listed in zen css";
  456. }
  457. symbol "RBL_SPAMHAUS_XBL" {
  458. weight = 4.0;
  459. description = "From address is listed in zen xbl";
  460. }
  461. symbol "RBL_SPAMHAUS_XBL1" {
  462. weight = 4.0;
  463. description = "From address is listed in zen xbl (obsoleted/reserved)";
  464. }
  465. symbol "RBL_SPAMHAUS_XBL2" {
  466. weight = 4.0;
  467. description = "From address is listed in zen xbl (obsoleted/reserved)";
  468. }
  469. symbol "RBL_SPAMHAUS_XBL3" {
  470. weight = 4.0;
  471. description = "From address is listed in zen xbl (reserved)";
  472. }
  473. symbol "RBL_SPAMHAUS_XBL_ANY" {
  474. weight = 4.0;
  475. description = "From or receive address is listed in zen xbl (any list)";
  476. }
  477. symbol "RBL_SPAMHAUS_PBL" {
  478. weight = 2.0;
  479. description = "From address is listed in zen pbl (ISP list)";
  480. }
  481. symbol "RBL_SPAMHAUS_PBL1" {
  482. weight = 2.0;
  483. description = "From address is listed in zen pbl (Spamhaus list)";
  484. }
  485. symbol "RECEIVED_SPAMHAUS_XBL" {
  486. weight = 3.0;
  487. description = "Received address is listed in zen xbl";
  488. one_shot = true;
  489. }
  490. symbol "RWL_SPAMHAUS_WL" {
  491. weight = 0.0;
  492. description = "Unrecognised result from Spamhaus whitelist";
  493. }
  494. symbol "RWL_SPAMHAUS_WL_IND" {
  495. weight = 0.0;
  496. description = "Sender listed at Spamhaus whitelist";
  497. }
  498. symbol "RWL_SPAMHAUS_WL_TRANS" {
  499. weight = 0.0;
  500. description = "Sender listed at Spamhaus whitelist";
  501. }
  502. symbol "RWL_SPAMHAUS_WL_IND_EXP" {
  503. weight = 0.0;
  504. description = "Sender listed at Spamhaus whitelist";
  505. }
  506. symbol "RWL_SPAMHAUS_WL_TRANS_EXP" {
  507. weight = 0.0;
  508. description = "Sender listed at Spamhaus whitelist";
  509. }
  510. symbol "RBL_SENDERSCORE" {
  511. weight = 2.0;
  512. description = "From address is listed in senderscore.com BL";
  513. }
  514. symbol "RBL_ABUSECH" {
  515. weight = 1.0;
  516. description = "From address is listed in ABUSE.CH BL";
  517. }
  518. symbol "RBL_UCEPROTECT_LEVEL1" {
  519. weight = 1.0;
  520. description = "From address is listed in UCEPROTECT LEVEL1 BL";
  521. }
  522. symbol "RBL_MAILSPIKE" {
  523. weight = 0.0;
  524. description = "Unrecognised result from Mailspike blacklist";
  525. }
  526. symbol "RWL_MAILSPIKE" {
  527. weight = 0.0;
  528. description = "Unrecognised result from Mailspike whitelist";
  529. }
  530. symbol "RBL_MAILSPIKE_ZOMBIE" {
  531. weight = 2.0;
  532. description = "From address is listed in RBL";
  533. }
  534. symbol "RBL_MAILSPIKE_WORST" {
  535. weight = 2.0;
  536. description = "From address is listed in RBL";
  537. }
  538. symbol "RBL_MAILSPIKE_VERYBAD" {
  539. weight = 1.5;
  540. description = "From address is listed in RBL";
  541. }
  542. symbol "RBL_MAILSPIKE_BAD" {
  543. weight = 1.0;
  544. description = "From address is listed in RBL";
  545. }
  546. symbol "RWL_MAILSPIKE_POSSIBLE" {
  547. weight = 0.0;
  548. description = "From address is listed in RWL";
  549. }
  550. symbol "RWL_MAILSPIKE_GOOD" {
  551. weight = 0.0;
  552. description = "From address is listed in RWL";
  553. }
  554. symbol "RWL_MAILSPIKE_VERYGOOD" {
  555. weight = 0.0;
  556. description = "From address is listed in RWL";
  557. }
  558. symbol "RWL_MAILSPIKE_EXCELLENT" {
  559. weight = 0.0;
  560. description = "From address is listed in RWL";
  561. }
  562. symbol "RBL_SORBS" {
  563. weight = 0.0;
  564. description = "Unrecognised result from SORBS RBL";
  565. }
  566. symbol "RBL_SORBS_HTTP" {
  567. weight = 2.5;
  568. description = "List of Open HTTP Proxy Servers.";
  569. }
  570. symbol "RBL_SORBS_SOCKS" {
  571. weight = 2.5;
  572. description = "List of Open SOCKS Proxy Servers.";
  573. }
  574. symbol "RBL_SORBS_MISC" {
  575. weight = 1.0;
  576. description = "List of open Proxy Servers not listed in the SOCKS or HTTP lists.";
  577. }
  578. symbol "RBL_SORBS_SMTP" {
  579. weight = 3.0;
  580. description = "List of Open SMTP relay servers.";
  581. }
  582. symbol "RBL_SORBS_RECENT" {
  583. weight = 1.5;
  584. description = "List of hosts that have been noted as sending spam/UCE/UBE to the admins of SORBS within the last 28 days (includes new.spam.dnsbl.sorbs.net).";
  585. }
  586. symbol "RBL_SORBS_WEB" {
  587. weight = 0.4;
  588. description = "List of web (WWW) servers which have spammer abusable vulnerabilities (e.g. FormMail scripts)";
  589. }
  590. symbol "RBL_SORBS_DUL" {
  591. weight = 2.0;
  592. description = "Dynamic IP Address ranges (NOT a Dial Up list!)";
  593. }
  594. symbol "RBL_SORBS_BLOCK" {
  595. weight = 1.0;
  596. description = "List of hosts demanding that they never be tested by SORBS.";
  597. }
  598. symbol "RBL_SORBS_ZOMBIE" {
  599. weight = 1.0;
  600. description = "List of networks hijacked from their original owners, some of which have already used for spamming.";
  601. }
  602. symbol "RBL_SEM" {
  603. weight = 1.0;
  604. description = "Address is listed in Spameatingmonkey RBL";
  605. }
  606. symbol "RBL_SEM_IPV6" {
  607. weight = 1.0;
  608. description = "Address is listed in Spameatingmonkey RBL (ipv6)";
  609. }
  610. }
  611. group "bayes" {
  612. symbol "BAYES_SPAM" {
  613. weight = 4.0;
  614. description = "Message probably spam, probability: ";
  615. }
  616. symbol "BAYES_HAM" {
  617. weight = -3.0;
  618. description = "Message probably ham, probability: ";
  619. }
  620. }
  621. group "fuzzy" {
  622. symbol "FUZZY_UNKNOWN" {
  623. weight = 5.0;
  624. description = "Generic fuzzy hash match";
  625. }
  626. symbol "FUZZY_DENIED" {
  627. weight = 12.0;
  628. description = "Denied fuzzy hash";
  629. }
  630. symbol "FUZZY_PROB" {
  631. weight = 5.0;
  632. description = "Probable fuzzy hash";
  633. }
  634. symbol "FUZZY_WHITE" {
  635. weight = -2.1;
  636. description = "Whitelisted fuzzy hash";
  637. }
  638. }
  639. group "spf" {
  640. symbol "R_SPF_FAIL" {
  641. weight = 1.0;
  642. description = "SPF verification failed";
  643. }
  644. symbol "R_SPF_SOFTFAIL" {
  645. weight = 0.0;
  646. description = "SPF verification soft-failed";
  647. }
  648. symbol "R_SPF_NEUTRAL" {
  649. weight = 0.0;
  650. description = "SPF policy is neutral";
  651. }
  652. symbol "R_SPF_ALLOW" {
  653. weight = -1.5;
  654. description = "SPF verification alowed";
  655. }
  656. }
  657. group "dkim" {
  658. symbol "R_DKIM_REJECT" {
  659. weight = 1.0;
  660. description = "DKIM verification failed";
  661. }
  662. symbol "R_DKIM_TEMPFAIL" {
  663. weight = 0.0;
  664. description = "DKIM verification soft-failed";
  665. }
  666. symbol "R_DKIM_ALLOW" {
  667. weight = -1.1;
  668. description = "DKIM verification succeed";
  669. one_shot = true;
  670. }
  671. }
  672. group "surbl" {
  673. symbol "SURBL_BLOCKED" {
  674. weight = 0.0;
  675. description = "SURBL: blocked by policy/overusage";
  676. }
  677. symbol "PH_SURBL_MULTI" {
  678. weight = 5.5;
  679. description = "SURBL: Phishing sites";
  680. }
  681. symbol "MW_SURBL_MULTI" {
  682. weight = 5.5;
  683. description = "SURBL: Malware sites";
  684. }
  685. symbol "ABUSE_SURBL" {
  686. weight = 5.5;
  687. description = "SURBL: ABUSE";
  688. }
  689. symbol "CRACKED_SURBL" {
  690. weight = 4.0;
  691. description = "SURBL: cracked site";
  692. }
  693. symbol "WS_SURBL_MULTI" {
  694. weight = 5.5;
  695. description = "SURBL: sa-blacklist web sites ";
  696. }
  697. symbol "RAMBLER_URIBL" {
  698. weight = 4.5;
  699. description = "rambler.ru uribl";
  700. }
  701. symbol "SEM_URIBL_UNKNOWN" {
  702. weight = 0.0;
  703. description = "Spameatingmonkey uribl: unknown result";
  704. }
  705. symbol "SEM_URIBL" {
  706. weight = 3.5;
  707. description = "Spameatingmonkey uribl";
  708. }
  709. symbol "SEM_URIBL_FRESH15_UNKNOWN" {
  710. weight = 0.0;
  711. description = "Spameatingmonkey Fresh15 uribl: unknown result";
  712. }
  713. symbol "SEM_URIBL_FRESH15" {
  714. weight = 3.0;
  715. description = "Spameatingmonkey uribl. Domains registered in the last 15 days (.AERO,.BIZ,.COM,.INFO,.NAME,.NET,.PRO,.SK,.TEL,.US)";
  716. }
  717. symbol "DBL" {
  718. weight = 0.0;
  719. description = "DBL unknown result";
  720. }
  721. symbol "DBL_SPAM" {
  722. weight = 6.5;
  723. description = "DBL uribl spam";
  724. }
  725. symbol "DBL_PHISH" {
  726. weight = 6.5;
  727. description = "DBL uribl phishing";
  728. }
  729. symbol "DBL_MALWARE" {
  730. weight = 6.5;
  731. description = "DBL uribl malware";
  732. }
  733. symbol "DBL_BOTNET" {
  734. weight = 5.5;
  735. description = "DBL uribl botnet C&C domain";
  736. }
  737. symbol "DBL_ABUSE" {
  738. weight = 6.5;
  739. description = "DBL uribl abused legit spam";
  740. }
  741. symbol "DBL_ABUSE_REDIR" {
  742. weight = 1.5;
  743. description = "DBL uribl abused spammed redirector domain";
  744. }
  745. symbol "DBL_ABUSE_PHISH" {
  746. weight = 7.5;
  747. description = "DBL uribl abused legit phish";
  748. }
  749. symbol "DBL_ABUSE_MALWARE" {
  750. weight = 7.5;
  751. description = "DBL uribl abused legit malware";
  752. }
  753. symbol "DBL_ABUSE_BOTNET" {
  754. weight = 5.5;
  755. description = "DBL uribl abused legit botnet C&C";
  756. }
  757. symbol "DBL_PROHIBIT" {
  758. weight = 0.00000;
  759. description = "DBL uribl IP queries prohibited!";
  760. }
  761. symbol "URIBL_MULTI" {
  762. weight = 0.0;
  763. description = "uribl.com: unrecognised result";
  764. }
  765. symbol "URIBL_BLOCKED" {
  766. weight = 0.0;
  767. description = "uribl.com: query refused";
  768. }
  769. symbol "URIBL_BLACK" {
  770. weight = 7.5;
  771. description = "uribl.com black url";
  772. }
  773. symbol "URIBL_RED" {
  774. weight = 3.5;
  775. description = "uribl.com red url";
  776. }
  777. symbol "URIBL_GREY" {
  778. weight = 1.5;
  779. description = "uribl.com grey url";
  780. }
  781. symbol "RAMBLER_EMAILBL" {
  782. weight = 9.5;
  783. description = "rambler.ru emailbl";
  784. }
  785. symbol "SBL_URIBL" {
  786. weight = 0.0;
  787. description = "SBL URIBL: Filtered result";
  788. }
  789. symbol "URIBL_SBL" {
  790. weight = 6.5;
  791. description = "Spamhaus SBL URIBL";
  792. }
  793. symbol "URIBL_SBL_CSS" {
  794. weight = 6.5;
  795. description = "Spamhaus SBL CSS URIBL";
  796. }
  797. }
  798. group "phishing" {
  799. symbol "PHISHING" {
  800. weight = 3.0;
  801. description = "Phished mail";
  802. }
  803. }
  804. group "date" {
  805. symbol "DATE_IN_FUTURE" {
  806. weight = 4.0;
  807. description = "Message date is in future";
  808. }
  809. symbol "DATE_IN_PAST" {
  810. weight = 1.0;
  811. description = "Message date is in past";
  812. }
  813. symbol "MISSING_DATE" {
  814. weight = 1.0;
  815. description = "Message date is missing";
  816. }
  817. }
  818. group "hfilter" {
  819. symbol "HFILTER_HELO_BAREIP" {
  820. weight = 3.00;
  821. description = "Helo host is bare ip";
  822. }
  823. symbol "HFILTER_HELO_BADIP" {
  824. weight = 4.50;
  825. description = "Helo host is very bad ip";
  826. }
  827. symbol "HFILTER_HELO_UNKNOWN" {
  828. weight = 2.00;
  829. description = "Helo host empty or unknown";
  830. }
  831. symbol "HFILTER_HELO_1" {
  832. weight = 0.5;
  833. description = "Helo host checks (very low)";
  834. }
  835. symbol "HFILTER_HELO_2" {
  836. weight = 1.00;
  837. description = "Helo host checks (low)";
  838. }
  839. symbol "HFILTER_HELO_3" {
  840. weight = 2.00;
  841. description = "Helo host checks (medium)";
  842. }
  843. symbol "HFILTER_HELO_4" {
  844. weight = 2.50;
  845. description = "Helo host checks (hard)";
  846. }
  847. symbol "HFILTER_HELO_5" {
  848. weight = 3.00;
  849. description = "Helo host checks (very hard)";
  850. }
  851. symbol "HFILTER_HOSTNAME_1" {
  852. weight = 0.5;
  853. description = "Hostname checks (very low)";
  854. }
  855. symbol "HFILTER_HOSTNAME_2" {
  856. weight = 1.00;
  857. description = "Hostname checks (low)";
  858. }
  859. symbol "HFILTER_HOSTNAME_3" {
  860. weight = 2.00;
  861. description = "Hostname checks (medium)";
  862. }
  863. symbol "HFILTER_HOSTNAME_4" {
  864. weight = 2.50;
  865. description = "Hostname checks (hard)";
  866. }
  867. symbol "HFILTER_HOSTNAME_5" {
  868. weight = 3.00;
  869. description = "Hostname checks (very hard)";
  870. }
  871. symbol "HFILTER_HELO_NORESOLVE_MX" {
  872. weight = 0.20;
  873. description = "MX found in Helo and no resolve";
  874. }
  875. symbol "HFILTER_HELO_NORES_A_OR_MX" {
  876. weight = 0.3;
  877. description = "Helo no resolve to A or MX";
  878. }
  879. symbol "HFILTER_HELO_IP_A" {
  880. weight = 1.00;
  881. description = "Helo A IP != hostname IP";
  882. }
  883. symbol "HFILTER_HELO_NOT_FQDN" {
  884. weight = 2.00;
  885. description = "Helo not FQDN";
  886. }
  887. symbol "HFILTER_FROMHOST_NORESOLVE_MX" {
  888. weight = 0.5;
  889. description = "MX found in FROM host and no resolve";
  890. }
  891. symbol "HFILTER_FROMHOST_NORES_A_OR_MX" {
  892. weight = 1.50;
  893. description = "FROM host no resolve to A or MX";
  894. }
  895. symbol "HFILTER_FROMHOST_NOT_FQDN" {
  896. weight = 3.00;
  897. description = "FROM host not FQDN";
  898. }
  899. symbol "HFILTER_FROM_BOUNCE" {
  900. weight = 0.00;
  901. description = "Bounce message";
  902. }
  903. /*
  904. symbol {
  905. weight = 0.50;
  906. name = "HFILTER_MID_NORESOLVE_MX";
  907. description = "MX found in Message-id host and no resolve";
  908. }
  909. symbol {
  910. weight = 0.50;
  911. name = "HFILTER_MID_NORES_A_OR_MX";
  912. description = "Message-id host no resolve to A or MX";
  913. }
  914. symbol {
  915. weight = 0.50;
  916. name = "HFILTER_MID_NOT_FQDN";
  917. description = "Message-id host not FQDN";
  918. }
  919. */
  920. symbol "HFILTER_HOSTNAME_UNKNOWN" {
  921. weight = 2.50;
  922. description = "Unknown hostname (no PTR or no resolve PTR to hostname)";
  923. }
  924. symbol "HFILTER_RCPT_BOUNCEMOREONE" {
  925. weight = 1.50;
  926. description = "Message from bounce and over 1 recepient";
  927. }
  928. symbol "HFILTER_URL_ONLY" {
  929. weight = 1.50;
  930. description = "URL only in body";
  931. }
  932. symbol "HFILTER_URL_ONELINE" {
  933. weight = 2.20;
  934. description = "One line URL and text in body";
  935. }
  936. }
  937. group "dmarc" {
  938. symbol "DMARC_POLICY_ALLOW" {
  939. weight = -1.0;
  940. description = "DMARC permit policy";
  941. }
  942. symbol "DMARC_POLICY_REJECT" {
  943. weight = 2.0;
  944. description = "DMARC reject policy";
  945. }
  946. symbol "DMARC_POLICY_QUARANTINE" {
  947. weight = 1.5;
  948. description = "DMARC quarantine policy";
  949. }
  950. symbol "DMARC_POLICY_SOFTFAIL" {
  951. weight = 0.1;
  952. description = "DMARC failed";
  953. }
  954. }
  955. group "mime_types" {
  956. symbol "MIME_GOOD" {
  957. weight = -0.1;
  958. description = "Known content-type";
  959. one_shot = true;
  960. }
  961. symbol "MIME_BAD" {
  962. weight = 1.0;
  963. description = "Known bad content-type";
  964. one_shot = true;
  965. }
  966. symbol "MIME_UNKNOWN" {
  967. weight = 0.1;
  968. description = "Missing or unknown content-type";
  969. one_shot = true;
  970. }
  971. symbol "MIME_BAD_ATTACHMENT" {
  972. weight = 4.0;
  973. description = "Invalid attachement mime type";
  974. one_shot = true;
  975. }
  976. }
  977. .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/metrics.conf"
  978. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/metrics.conf"
  979. }