Debian Codegraph @

test/functional/configs/plugins.conf

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