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.

plugins.conf 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. options = {
  2. filters = [ "dkim", "regexp"]
  3. url_tld = "{= env.URL_TLD =}"
  4. pidfile = "{= env.TMPDIR =}/rspamd.pid"
  5. lua_path = "{= env.INSTALLROOT =}/share/rspamd/lib/?.lua"
  6. explicit_modules = ["settings", "bayes_expiry"];
  7. dns {
  8. nameserver = ["8.8.8.8", "8.8.4.4"];
  9. retransmits = 10;
  10. timeout = 2s;
  11. fake_records = [{ # ed25519
  12. name = "test._domainkey.example.com";
  13. type = txt;
  14. replies = ["k=ed25519; p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y="];
  15. },
  16. {
  17. name = "brisbane._domainkey.football.example.com";
  18. type = txt;
  19. replies = ["v=DKIM1; k=ed25519; p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo="];
  20. },
  21. {
  22. name = "test._domainkey.football.example.com";
  23. type = txt;
  24. replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDkHlOQoBTzWRiGs5V6NpP3idY6Wk08a5qhdR6wy5bdOKb2jLQiY/J16JYi0Qvx/byYzCNb3W91y3FutACDfzwQ/BC/e/8uBsCR+yz1Lxj+PL6lHvqMKrM3rG4hstT5QjvHO9PzoxZyVYLzBfO2EeC3Ip3G+2kryOTIKT+l/K4w3QIDAQAB"],
  25. },
  26. {
  27. name = "dkim._domainkey.cacophony.za.org",
  28. type = "txt";
  29. replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXtxBE5IiNRMcq2/lc2zErfdCvDFyQNBnMjbOjBQrPST2k4fdGbtpe5Iu5uS01Met+dAEf94XL8I0hwmYw+n70PP834zfJGi2egwGqrakpaWsCDPvIJZLkxJCJKQRA/zrQ622uEXdvYixVbsEGVw7U4wAGSmT5rU2eU1y63AlOlQIDAQAB"];
  30. },
  31. {
  32. name = "eddsa._domainkey.cacophony.za.org",
  33. type = "txt";
  34. replies = ["v=DKIM1; k=ed25519; p=+nU+aC33ICeS4zx8VUjFYCtxj0fRbHWQn2gP2hTkm9w="];
  35. },
  36. {
  37. name = "dkim._domainkey.invalid.za.org",
  38. type = "txt";
  39. replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEEXmNGQq7PUrr9Mg4UakTFHgXBCy2DOztkrZm+0OrVWtiRzGluxBkbOWTBwuU3/Yw97yTphBMQxzWFN603/f/KPAQcF/Lc1l+6kmIBBxNXjjGuOK/3PYKZVntUdKmqcQBYfnHdzH2Tohbuyx1a7xqnv6VSChqQrZU4CwkeT3+eQIDAQAB"];
  40. },
  41. {
  42. name = "eddsa._domainkey.invalid.za.org",
  43. type = "txt";
  44. replies = ["v=DKIM1; k=ed25519; p=Wkkrp5DJTvknDMGWYv8vm3p3sZjiQp03LZo80RregY8="];
  45. },
  46. {
  47. name = "dkim._domainkey.rspamd.com",
  48. type = "txt";
  49. replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCd/XhZBEGGAss48lEuMmwZv9lOFf6FTllBiQ3sPhdTpDdIPaW9TInW7iYnYD/bXHeVxYAyD/sKhYk6+qGBRu10rEi+iyPvLCIED+Boq0tEQosuKuV6Fjoomb+QhZY9KdjyZTjsrFPZ+wCkUY/30uTmpX2SwSqyxxlK0pUIsRgMAQIDAQAB"];
  50. },
  51. {
  52. name = "_dmarc.rspamd.com",
  53. type = "txt";
  54. rcode = 'norec';
  55. },
  56. {
  57. name = "dkim._domainkey.highsecure.ru",
  58. type = "txt";
  59. replies = ["p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDK4ZQYky30GH0Ak9OQ1fv3IdFNbpOtpa4S/PR20ZLgPXfd/FCA//ztUmu7kHlELI+/+4f8W+xX0oZlOc/cFxhopRjXZMlSsQqmWOZ40/GxWFBtcqafKu78FCqO7URqZUmMCM5Jlp4zt/yzH3dbYNG3i5PVlB5QtQnZvY+dvBL3dwIDAQAB"];
  60. },
  61. {
  62. name = "_dmarc.cacophony.za.org",
  63. type = "txt";
  64. replies = ["v=DMARC1; p=none; sp=reject"];
  65. },
  66. {
  67. name = "_dmarc.my.mom.za.org",
  68. type = "txt";
  69. replies = ["v=DMARC1; p=reject"];
  70. },
  71. {
  72. name = "example.net",
  73. type = "txt";
  74. replies = ["v=spf1 -all"];
  75. },
  76. {
  77. name = "fail4.org.org.za",
  78. type = "txt";
  79. replies = ["v=spf1 redirect=asdfsfewewrredfs"];
  80. },
  81. {
  82. name = "_dmarc.reject.cacophony.za.org",
  83. type = "txt";
  84. replies = ["v=DMARC1; p=reject"];
  85. },
  86. {
  87. name = "spf.cacophony.za.org",
  88. type = "txt";
  89. replies = ["v=spf1 ip4:8.8.4.4 -all"];
  90. },
  91. {
  92. name = "fail7.org.org.za",
  93. type = "a";
  94. rcode = 'norec';
  95. },
  96. {
  97. name = "fail6.org.org.za",
  98. type = "txt";
  99. replies = ["v=spf1 ip4:8.8.8.8 mx -all"];
  100. },
  101. {
  102. name = "fail6.org.org.za",
  103. type = "mx";
  104. rcode = 'norec';
  105. },
  106. {
  107. name = "fail7.org.org.za",
  108. type = "aaaa";
  109. rcode = 'norec';
  110. },
  111. {
  112. name = "_dmarc.quarantine.cacophony.za.org",
  113. type = "txt";
  114. replies = ["v=DMARC1; p=quarantine"];
  115. },
  116. {
  117. name = "_dmarc.yo.mom.za.org",
  118. type = "txt";
  119. replies = ["v=DMARC1; p=reject; aspf=s; adkim=s;"];
  120. },
  121. {
  122. name = "yo.mom.za.org",
  123. type = "txt";
  124. replies = ["v=spf1 ip4:37.48.67.26 -all"];
  125. },
  126. {
  127. name = "testdkim._domainkey.mom.za.org",
  128. type = "txt";
  129. replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3v4VPE1QMHUzsMRbC8VzXNq82mDjiv9Gi1NB/YYC+vIYZT+sE/Uxnr0Clk8C2jgzEr3jcxgQEWZfMtEEg/EfEJvh4SrXWv9c0gw1EEfxKxX9i+r8yBQtc/EWospWVDkhF2lAvQAK1lV1ZiU7psJ6fh1CI39uZyWdAktZzWLf0zQIDAQAB"];
  130. },
  131. {
  132. name = "_dmarc.rspamd.tk",
  133. type = "txt";
  134. replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"];
  135. },
  136. {
  137. name = "fail2.org.org.za",
  138. type = "txt";
  139. replies = ["v=spf1 ip4:8.8.4.4 include:www.dnssec-failed.org -all"];
  140. },
  141. {
  142. name = "fail3.org.org.za",
  143. type = "txt";
  144. replies = ["v=spf1 ip4:8.8.8.8 include:total.barf -all"];
  145. },
  146. {
  147. name = "mom.za.org",
  148. type = "txt";
  149. replies = ["v=spf1 ip4:37.48.67.26 -all"];
  150. },
  151. {
  152. name = "testdkim._domainkey.asdf.rspamd.tk", # testdkim._domainkey.asdf.rspamd.tk is an alias for rspamd.tk
  153. type = "txt";
  154. replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"];
  155. },
  156. {
  157. name = "testdkim._domainkey.rspamd.tk", # testdkim._domainkey.rspamd.tk is an alias for rspamd.tk
  158. type = "txt";
  159. replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"];
  160. },
  161. {
  162. name = "pass1.org.org.za",
  163. type = "txt";
  164. replies = ["v=spf1 include:pass2.org.org.za -all"];
  165. },
  166. {
  167. name = "95.142.99.88.in-addr.arpa",
  168. type = "ptr";
  169. replies = ["mail.highsecure.ru"];
  170. },
  171. {
  172. name = "mail.highsecure.ru",
  173. type = "a";
  174. replies = ["88.99.142.95"];
  175. },
  176. {
  177. name = "mail.highsecure.ru",
  178. type = "aaaa";
  179. rcode = 'norec';
  180. },
  181. {
  182. name = "1.0.66.128.in-addr.arpa",
  183. type = "ptr";
  184. rcode = 'nxdomain';
  185. },
  186. {
  187. name = "182.216.85.209.in-addr.arpa",
  188. type = "ptr";
  189. replies = ["mail-qt0-f182.google.com"];
  190. },
  191. {
  192. name = "crazyspf.cacophony.za.org",
  193. type = "txt";
  194. replies = ["v=spf1 ptr:cacophony.za.org ptr:rspamd.com ptr:yahoo.com ptr:yahoo.net ptr:highsecure.ru -all"];
  195. },
  196. {
  197. name = "pass2.org.org.za",
  198. type = "txt";
  199. replies = ["v=spf1 ip4:8.8.8.8 -all"];
  200. },
  201. {
  202. name = "_dmarc.yoni.za.org",
  203. type = "txt";
  204. replies = ["v=DMARC1; p=reject; sp=none;"];
  205. },
  206. {
  207. name = "fail10.org.org.za",
  208. type = "txt";
  209. replies = ["v=spf1 redirect=fail5.org.org.za"];
  210. },
  211. {
  212. name = "fail11.org.org.za",
  213. type = "txt";
  214. replies = ["v=sPF1 ip4:8.8.8.8 -all"];
  215. },
  216. {
  217. name = "fail5.org.org.za",
  218. type = "txt";
  219. replies = ["v=spf1 OMGBARF"];
  220. },
  221. {
  222. name = "fail7.org.org.za",
  223. type = "txt";
  224. replies = ["v=spf1 ip4:8.8.8.8 a -all"];
  225. },
  226. {
  227. name = "trusted.com",
  228. type = "txt";
  229. replies = ["v=spf1 ip4:192.168.1.1"];
  230. },
  231. {
  232. name = "external.com",
  233. type = "txt";
  234. replies = ["v=spf1 ip4:37.48.67.26"];
  235. },
  236. {
  237. name = "co.za",
  238. type = "txt";
  239. rcode = 'norec';
  240. },
  241. {
  242. name = "testdkim1._domainkey.yoni.za.org",
  243. type = "txt";
  244. replies = ["v=DKIM1; k=rsa; p=BARF"];
  245. },
  246. {
  247. name = "_dmarc.yoni.za.net",
  248. type = "txt";
  249. replies = ["v=DMARC1; p=none; sp=quarantine"];
  250. },
  251. {
  252. name = "za",
  253. type = "txt";
  254. replies = ["Top-level domain for South Africa"];
  255. },
  256. {
  257. name = "_dmarc.foo.yoni.za.org",
  258. type = "txt";
  259. rcode = 'nxdomain';
  260. },
  261. {
  262. name = "_dmarc.foo.cacophony.za.org",
  263. type = "txt";
  264. rcode = 'nxdomain';
  265. },
  266. {
  267. name = "_dmarc.foo.yoni.za.net",
  268. type = "txt";
  269. rcode = 'nxdomain';
  270. },
  271. {
  272. name = "_dmarc.dnssec-failed.org",
  273. type = "txt";
  274. rcode = 'timeout';
  275. },
  276. {
  277. name = "_dmarc.example.com",
  278. type = "txt";
  279. rcode = 'nxdomain';
  280. },
  281. {
  282. name = "_dmarc.zero_pct.com",
  283. type = "txt";
  284. replies = ["v=DMARC1; p=reject; sp=quarantine; pct=0"];
  285. },
  286. {
  287. name = "example.com",
  288. type = "txt";
  289. replies = ["$Id: example.com 4415 2015-08-24 20:12:23Z davids $", "v=spf1 -all"];
  290. },
  291. {
  292. name = "example.com",
  293. type = "a";
  294. replies = ["93.184.216.34"];
  295. },
  296. {
  297. name = "testdkim1._domainkey.dnssec-failed.org",
  298. type = "txt";
  299. rcode = 'timeout';
  300. },
  301. {
  302. name = "total.barf",
  303. type = "txt";
  304. rcode = 'nxdomain';
  305. },
  306. {
  307. name = "_dmarc.foo.cacophony.za.org",
  308. type = "txt";
  309. rcode = 'nxdomain';
  310. },
  311. {
  312. name = "zzzzaaaa",
  313. type = "txt";
  314. rcode = 'nxdomain';
  315. },
  316. {
  317. name = "asdfsfewewrredfs",
  318. type = "txt";
  319. rcode = 'nxdomain';
  320. },
  321. {
  322. name = "95.142.99.88.asn.rspamd.com",
  323. type = "txt";
  324. replies = ["24940|88.99.0.0/16|DE|ripencc|"];
  325. },
  326. {
  327. name = "2.a.d.1.1.d.e.f.f.f.0.0.4.5.0.5.d.6.2.0.6.b.a.a.8.c.7.0.1.0.a.2.asn6.rspamd.com",
  328. type = "txt";
  329. replies = ["20857|2a01:7c8::/32|NL|ripencc|"];
  330. },
  331. {
  332. name = "2.a.d.1.1.d.e.f.f.f.0.0.4.5.0.5.d.6.2.0.6.b.a.a.8.c.7.0.1.0.a.2.rspamd.com",
  333. type = "txt";
  334. rcode = 'nxdomain';
  335. },
  336. {
  337. name = "2.a.d.1.1.d.e.f.f.f.0.0.4.5.0.5.d.6.2.0.6.b.a.a.8.c.7.0.1.0.a.2.rspamd.com",
  338. type = "a";
  339. rcode = 'nxdomain';
  340. },
  341. {
  342. name = "rspamd.com",
  343. type = "txt";
  344. replies = ["v=spf1 mx -all"];
  345. },
  346. {
  347. name = "rspamd.com",
  348. type = "mx";
  349. replies = ["10 mail.highsecure.ru"];
  350. },
  351. {
  352. name = "95.142.99.88.rspamd.com",
  353. type = "a";
  354. rcode = 'norec';
  355. },
  356. {
  357. name = "95.142.99.88.rspamd.com",
  358. type = "aaaa";
  359. rcode = 'norec';
  360. },
  361. {
  362. name = "2.0.0.127.rspamd.com",
  363. type = "a";
  364. replies = ["127.0.0.1"];
  365. },
  366. {
  367. name = "8.8.8.8.asn.rspamd.com",
  368. type = "txt";
  369. replies = ["15169|8.8.8.0/24|US|arin|"];
  370. },
  371. {
  372. name = "8.8.8.8.asn.rspamd.com",
  373. type = "a";
  374. rcode = 'nxdomain';
  375. },
  376. {
  377. name = "10.0.1.10.asn.rspamd.com",
  378. type = "txt";
  379. rcode = 'nxdomain';
  380. },
  381. {
  382. name = "10.0.1.10.asn.rspamd.com",
  383. type = "a";
  384. rcode = 'nxdomain';
  385. },
  386. {
  387. name = "10.0.1.11.asn.rspamd.com",
  388. type = "txt";
  389. rcode = 'nxdomain';
  390. },
  391. {
  392. name = "10.0.1.11.asn.rspamd.com",
  393. type = "a";
  394. rcode = 'nxdomain';
  395. },
  396. {
  397. name = "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.rspamd.com",
  398. type = "a";
  399. rcode = 'nxdomain';
  400. },
  401. {
  402. name = "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.rspamd.com",
  403. type = "a";
  404. rcode = 'nxdomain';
  405. },
  406. {
  407. name = "test.com",
  408. type = "txt";
  409. replies = [""];
  410. },
  411. {
  412. name = "other.com",
  413. type = "txt";
  414. rcode = 'norec';
  415. },
  416. {
  417. name = "bob",
  418. type = "txt";
  419. rcode = 'nxdomain';
  420. },
  421. {
  422. name = "mail.highsecure.ru",
  423. type = "aaaa";
  424. rcode = 'norec';
  425. },
  426. {
  427. name = "mail.highsecure.ru",
  428. type = "a";
  429. replies = ["88.99.142.95"];
  430. },
  431. {
  432. name = "4.3.2.1.rspamd.com",
  433. type = "a";
  434. rcode = 'nxdomain';
  435. },
  436. {
  437. name = "4.3.2.1.asn.rspamd.com",
  438. type = "txt";
  439. rcode = 'nxdomain';
  440. },
  441. {
  442. name = "1.0.0.127.rspamd.com",
  443. type = "a";
  444. rcode = 'nxdomain';
  445. },
  446. {
  447. name = "114.47.228.46.rspamd.com",
  448. type = "a";
  449. rcode = 'nxdomain';
  450. },
  451. {
  452. name = "114.47.228.46.asn.rspamd.com",
  453. type = "txt";
  454. replies = ["34010|46.228.40.0/21|GB|ripencc|"];
  455. },
  456. {
  457. name = "10.0.1.10.rspamd.com",
  458. type = "a";
  459. rcode = 'nxdomain';
  460. },
  461. {
  462. name = "10.0.1.11.rspamd.com",
  463. type = "a";
  464. rcode = 'nxdomain';
  465. },
  466. {
  467. name = "other.org",
  468. type = "txt";
  469. rcode = 'norec';
  470. },
  471. {
  472. name = "8.8.8.8.rspamd.com",
  473. type = "a";
  474. rcode = 'nxdomain';
  475. },
  476. {
  477. name = "rspamd.tk",
  478. type = "txt";
  479. replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"];
  480. },
  481. {
  482. name = "fail1.org.org.za",
  483. type = "txt";
  484. replies = ["v=spf1 redirect=www.dnssec-failed.org"];
  485. },
  486. {
  487. name = "www.dnssec-failed.org",
  488. type = "txt";
  489. rcode = 'timeout';
  490. },
  491. {
  492. name = "www.dnssec-failed.org",
  493. type = "mx";
  494. rcode = 'timeout';
  495. },
  496. {
  497. name = "www.dnssec-failed.org",
  498. type = "a";
  499. rcode = 'timeout';
  500. },
  501. {
  502. name = "www.dnssec-failed.org",
  503. type = "aaaa";
  504. rcode = 'norec';
  505. },
  506. {
  507. name = "cacophony.za.org",
  508. type = "txt";
  509. replies = ["v=spf1 redirect=asdfsfewewrredfs"];
  510. },
  511. {
  512. name = "fail9.org.org.za",
  513. type = "txt";
  514. replies = ["v=spf1 ip4:8.8.8.8 mx:www.dnssec-failed.org -all"];
  515. },
  516. {
  517. name = "fail8.org.org.za",
  518. type = "txt";
  519. replies = ["v=spf1 ip4:8.8.8.8 a:www.dnssec-failed.org -all"];
  520. },
  521. {
  522. name = "1.2.3.4.fake.rbl";
  523. type = "a";
  524. replies = ["127.0.0.2"];
  525. },
  526. {
  527. name = "2.2.3.4.fake.rbl";
  528. type = "a";
  529. replies = ["127.0.0.10"];
  530. },
  531. {
  532. name = "3.2.3.4.fake.rbl";
  533. type = "a";
  534. replies = ["127.0.0.2", "127.0.0.3"];
  535. },
  536. {
  537. name = "4.2.3.4.fake.rbl";
  538. type = "a";
  539. replies = ["127.0.0.2"];
  540. },
  541. {
  542. name = "4.2.3.4.fake.wl";
  543. type = "a";
  544. replies = ["127.0.0.2"];
  545. },
  546. {
  547. name = "4.3.2.1.fake.rbl";
  548. type = "a";
  549. rcode = 'nxdomain';
  550. },
  551. {
  552. name = "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.fake.rbl";
  553. type = "a";
  554. replies = ["127.0.0.2"];
  555. },
  556. {
  557. name = "131.193.18.151.fake.rbl";
  558. type = "a";
  559. replies = ["127.0.0.3"];
  560. },
  561. # SURBL tests
  562. {
  563. name = "rciuosbadgpq6b5wt436nhgnwzmfh9w9.test.uribl";
  564. type = a;
  565. replies = ["127.0.0.2"];
  566. },
  567. {
  568. # testtest.com
  569. name = "rcf1ecxtxrrpfncqzsdaiezjkf7f1rzz.test.uribl";
  570. type = a;
  571. replies = ["127.0.0.2"];
  572. },
  573. {
  574. name = "jhcszdsmo3wuj5mp8t38kdisdmr3ib3q.test.uribl";
  575. type = a;
  576. replies = ["127.0.0.2"];
  577. },
  578. {
  579. name = "g9ifs3q39oh5jwru94cj7ffaqd6rfyq6.test.uribl";
  580. type = a;
  581. replies = ["127.0.0.2"];
  582. },
  583. {
  584. name = "xn--80arbjktj.xn--p1ai.test2.uribl";
  585. type = a;
  586. replies = ["127.0.1.2"];
  587. },
  588. {
  589. name = "мойсайт.рф.test2.uribl";
  590. type = a;
  591. replies = ["127.0.1.2"];
  592. },
  593. {
  594. name = "user.emailbl.com.test5.uribl";
  595. type = a;
  596. replies = ["127.0.0.2"];
  597. },
  598. {
  599. name = "user.subdomain.emailbl.com.test5.uribl";
  600. type = a;
  601. replies = ["127.0.0.2"];
  602. },
  603. {
  604. name = "baddomain.com.test6.uribl";
  605. type = a;
  606. replies = ["127.0.0.2"];
  607. },
  608. {
  609. name = "user.subdomain.baddomain.com.test5.uribl";
  610. type = a;
  611. replies = ["127.0.0.2"];
  612. },
  613. {
  614. name = "example.com.test2.uribl";
  615. type = a;
  616. replies = ["127.0.1.2"];
  617. },
  618. {
  619. name = "user.example.com.test2.uribl";
  620. type = a;
  621. replies = ["127.0.1.5"];
  622. },
  623. {
  624. name = "example.net.test2.uribl";
  625. type = a;
  626. replies = ["127.0.1.4"];
  627. },
  628. {
  629. name = "rspamd.tk.test2.uribl";
  630. type = a;
  631. replies = ["127.0.1.4"];
  632. },
  633. {
  634. name = "example.org.test3.uribl";
  635. type = a;
  636. replies = ["127.0.0.2"];
  637. },
  638. {
  639. name = "example.ru.test3.uribl";
  640. type = a;
  641. replies = ["127.0.0.12"];
  642. },
  643. {
  644. name = "example.ru";
  645. type = a;
  646. replies = ["8.8.8.8", "8.8.8.9"];
  647. },
  648. {
  649. name = "8.8.8.8.test4.uribl";
  650. type = a;
  651. replies = ["127.0.0.4", "127.0.0.11"];
  652. },
  653. {
  654. name = "uppht14nj4fsoycu3huctg9d5psx9je4.test.uribl";
  655. type = a;
  656. replies = ["127.0.0.2"];
  657. },
  658. {
  659. name = "rspamd-test.com.test2.uribl";
  660. type = a;
  661. replies = ["127.0.1.2"];
  662. },
  663. {
  664. name = "9.8.8.8.test4.uribl";
  665. type = a;
  666. replies = ["127.0.0.3"];
  667. },
  668. {
  669. name = "4.very.dirty.sanchez.com.test7.uribl";
  670. type = a;
  671. replies = ["127.0.0.2"];
  672. },
  673. {
  674. name = "clean.dirty.sanchez.com.test7.uribl";
  675. type = a;
  676. replies = ["127.0.0.2"];
  677. },
  678. {
  679. name = "not.dirty.sanchez.com.test7.uribl";
  680. type = a;
  681. replies = ["127.0.0.2"];
  682. },
  683. {
  684. name = "41.black.sanchez.com.test7.uribl";
  685. type = a;
  686. replies = ["127.0.0.2"];
  687. },
  688. {
  689. name = "black.sanchez.com.test7.uribl";
  690. type = a;
  691. replies = ["127.0.0.2"];
  692. },
  693. {
  694. name = "dirty.sanchez.com.test8.uribl";
  695. type = a;
  696. replies = ["127.0.0.2"];
  697. },
  698. {
  699. name = "very.dirty.sanchez.com.test8.uribl";
  700. type = a;
  701. replies = ["127.0.0.2"];
  702. },
  703. {
  704. name = "41.black.sanchez.com.test8.uribl";
  705. type = a;
  706. replies = ["127.0.0.2"];
  707. },
  708. {
  709. name = "black.sanchez.com.test8.uribl";
  710. type = a;
  711. replies = ["127.0.0.2"];
  712. },
  713. {
  714. name = "example.com.test9.uribl";
  715. type = a;
  716. replies = ["127.0.0.2"];
  717. },
  718. {
  719. name = "example.org.test9.uribl";
  720. type = a;
  721. replies = ["127.0.0.2"];
  722. },
  723. {
  724. name = "8.8.8.8.test9.uribl";
  725. type = a;
  726. replies = ["127.0.0.2"];
  727. },
  728. # TODO: add IPv6 tests
  729. ];
  730. }
  731. }
  732. logging = {
  733. type = "file",
  734. level = "debug"
  735. filename = "{= env.TMPDIR =}/rspamd.log"
  736. log_usec = true;
  737. }
  738. metric = {
  739. name = "default",
  740. actions = {
  741. reject = 100500,
  742. add_header = 50500,
  743. }
  744. unknown_weight = 1
  745. }
  746. worker {
  747. type = normal
  748. bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"
  749. count = 1
  750. task_timeout = 10s;
  751. }
  752. worker {
  753. type = controller
  754. bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"
  755. count = 1
  756. secure_ip = ["127.0.0.1", "::1"];
  757. stats_path = "{= env.TMPDIR =}/stats.ucl"
  758. }
  759. modules {
  760. path = "{= env.TESTDIR =}/../../src/plugins/lua/"
  761. }
  762. spf {}
  763. lua = "{= env.TESTDIR =}/lua/test_coverage.lua";
  764. lua = "{= env.INSTALLROOT =}/share/rspamd/rules/rspamd.lua";