| 1 |
history_redis { |
| 2 |
enabled = false; |
| 3 |
} |
| 4 |
|
| 5 |
neural { |
| 6 |
enabled = false; |
| 7 |
} |
| 8 |
|
| 9 |
bayes_expiry { |
| 10 |
enabled = false; |
| 11 |
} |
| 12 |
|
| 13 |
metric_exporter { |
| 14 |
enabled = false; |
| 15 |
} |
| 16 |
|
| 17 |
aliases { |
| 18 |
enabled = true; |
| 19 |
|
| 20 |
# Unix aliases |
| 21 |
system_aliases = "{= env.TESTDIR =}/configs/maps/test_unix_aliases.map"; |
| 22 |
|
| 23 |
# Virtual aliases |
| 24 |
virtual_aliases = "{= env.TESTDIR =}/configs/maps/test_virtual_aliases.map"; |
| 25 |
|
| 26 |
# Local domains - inline для уверенности что загрузятся |
| 27 |
local_domains = ["example.com", "mail.example.com", "internal.example.com"]; |
| 28 |
|
| 29 |
# Rspamd-specific inline aliases |
| 30 |
rspamd_aliases = { |
| 31 |
"[email protected]" = "[email protected]"; |
| 32 |
"[email protected]" = ["[email protected]", "[email protected]"]; |
| 33 |
} |
| 34 |
|
| 35 |
# Options |
| 36 |
max_recursion_depth = 10; |
| 37 |
expand_multiple = true; |
| 38 |
enable_gmail_rules = true; |
| 39 |
enable_plus_aliases = true; |
| 40 |
} |
| 41 |
|
| 42 |
emails { |
| 43 |
"whitelist" = [ |
| 44 |
"rspamd-test.com" |
| 45 |
] |
| 46 |
rules { |
| 47 |
"RSPAMD_EMAILBL_FULL" { |
| 48 |
dnsbl = "test5.uribl"; |
| 49 |
replyto = true; |
| 50 |
} |
| 51 |
"RSPAMD_EMAILBL_DOMAINONLY" { |
| 52 |
dnsbl = "test6.uribl"; |
| 53 |
domain_only = true; |
| 54 |
replyto = true; |
| 55 |
} |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
external_relay { |
| 60 |
enabled = {= env.EXTERNAL_RELAY_ENABLED =}; |
| 61 |
|
| 62 |
rules { |
| 63 |
EXTERNAL_RELAY_AUTHENTICATED { |
| 64 |
strategy = "authenticated"; |
| 65 |
user_map = "{= env.TESTDIR =}/configs/maps/external_relay.user_map"; |
| 66 |
} |
| 67 |
EXTERNAL_RELAY_COUNT { |
| 68 |
count = 4; |
| 69 |
# `count` strategy always pops Received headers out, this will break other rules. |
| 70 |
# So it should always be the last rule. |
| 71 |
priority = 30; |
| 72 |
strategy = "count"; |
| 73 |
} |
| 74 |
EXTERNAL_RELAY_HOSTNAME_MAP { |
| 75 |
hostname_map = "{= env.TESTDIR =}/configs/maps/external_relay.hostname_map"; |
| 76 |
strategy = "hostname_map"; |
| 77 |
} |
| 78 |
EXTERNAL_RELAY_IP_MAP { |
| 79 |
ip_map = "{= env.TESTDIR =}/configs/maps/external_relay.ip_map"; |
| 80 |
strategy = "ip_map"; |
| 81 |
} |
| 82 |
EXTERNAL_RELAY_LOCAL { |
| 83 |
strategy = "local"; |
| 84 |
} |
| 85 |
} |
| 86 |
} |
| 87 |
|
| 88 |
greylist { |
| 89 |
check_local = true; |
| 90 |
timeout = 4; |
| 91 |
} |
| 92 |
|
| 93 |
logging = { |
| 94 |
type = "file", |
| 95 |
level = "debug" |
| 96 |
filename = "{= env.TMPDIR =}/rspamd.log" |
| 97 |
log_usec = true; |
| 98 |
} |
| 99 |
|
| 100 |
# Add SA-like regexp_rules (selector/header/uri/full/meta) for merged suite |
| 101 |
multimap { |
| 102 |
SA_SELECTOR_RULES { |
| 103 |
type = "regexp_rules"; |
| 104 |
map = "{= env.TESTDIR =}/configs/maps/sa_selector_rules.map"; |
| 105 |
description = "SA-like selector/header/uri/full tests"; |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
mid = { |
| 110 |
source = { |
| 111 |
url = [ |
| 112 |
"{= env.MAPS_MIRROR | default "https://maps.rspamd.com" =}/rspamd/mid.inc.zst", |
| 113 |
"fallback+file://{= env.TESTDIR =}/../../../conf/mid.inc", |
| 114 |
"file://{= env.TESTDIR =}/configs/maps/mid.list" |
| 115 |
]; |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
mime_types { |
| 120 |
file = [ |
| 121 |
"{= env.MAPS_MIRROR | default "https://maps.rspamd.com" =}/rspamd/mime_types.inc.zst", |
| 122 |
"fallback+file://{= env.TESTDIR =}/../../../conf/mime_types.inc" |
| 123 |
]; |
| 124 |
extension_map { |
| 125 |
html = "text/html"; |
| 126 |
txt [ |
| 127 |
"message/disposition-notification", |
| 128 |
"text/plain", |
| 129 |
"text/rfc822-headers", |
| 130 |
] |
| 131 |
pdf [ |
| 132 |
"application/octet-stream", |
| 133 |
"application/pdf", |
| 134 |
] |
| 135 |
} |
| 136 |
filename_whitelist = "{= env.TESTDIR =}/configs/maps/mime_types.wl"; |
| 137 |
} |
| 138 |
|
| 139 |
options = { |
| 140 |
pidfile = "{= env.TMPDIR =}/rspamd.pid"; |
| 141 |
url_tld = "{= env.TESTDIR =}/../lua/unit/test_tld.dat"; |
| 142 |
# Use old default for tests to preserve backward compatibility |
| 143 |
include_content_urls = false; |
| 144 |
dns { |
| 145 |
retransmits = 2; |
| 146 |
fake_records = [{ |
| 147 |
# non-existent records requested by 350_surbl tests |
| 148 |
name = "114.73.21.104.test4.uribl", type = "a", rcode = "norec"}, |
| 149 |
{name = "153.23.128.52.test4.uribl", type = "a", rcode = "norec"}, |
| 150 |
{name = "158.136.181.135.test4.uribl", type = "a", rcode = "norec"}, |
| 151 |
{name = "177.115.236.44.test4.uribl", type = "a", rcode = "norec"}, |
| 152 |
{name = "180.136.102.34.test4.uribl", type = "a", rcode = "norec"}, |
| 153 |
{name = "180.144.67.172.test4.uribl", type = "a", rcode = "norec"}, |
| 154 |
{name = "2.7.9.4.5.1.8.6.0.0.0.0.0.0.0.0.0.0.0.0.7.3.0.3.0.0.7.4.6.0.6.2.test4.uribl", type = "a", rcode = "norec"}, |
| 155 |
{name = "217.228.62.64.test4.uribl", type = "a", rcode = "norec"}, |
| 156 |
{name = "34.216.184.93.test4.uribl", type = "a", rcode = "norec"}, |
| 157 |
{name = "4.b.0.9.3.4.c.a.0.0.0.0.0.0.0.0.0.0.0.0.1.3.0.3.0.0.7.4.6.0.6.2.test4.uribl", type = "a", rcode = "norec"}, |
| 158 |
{name = "4eikheqjb4rb3y4oxgnfxek9wrwnyii4.test.uribl", type = "a", rcode = "norec"}, |
| 159 |
{name = "6.4.9.1.8.c.5.2.3.9.8.1.8.4.2.0.1.0.0.0.0.2.2.0.0.0.8.2.6.0.6.2.test4.uribl", type = "a", rcode = "norec"}, |
| 160 |
{name = "69so7b146n15x6qkr8rj9x8iqb7zfr1s.test.uribl", type = "a", rcode = "norec"}, |
| 161 |
{name = "6cqpxfrojdnzawwjmacjwtstzwehxnzb.test.uribl", type = "a", rcode = "norec"}, |
| 162 |
{name = "7.5.2.e.9.5.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.1.0.c.3.0.0.6.2.test4.uribl", type = "a", rcode = "norec"}, |
| 163 |
{name = "baddomain.com.test2.uribl", type = "a", rcode = "norec"}, |
| 164 |
{name = "baddomain.com.test3.uribl", type = "a", rcode = "norec"}, |
| 165 |
{name = "bbjo9td11ewijyjkq8rsn4j3kxhthz4m.test.uribl", type = "a", rcode = "norec"}, |
| 166 |
{name = "emailbl.com.test2.uribl", type = "a", rcode = "norec"}, |
| 167 |
{name = "emailbl.com.test3.uribl", type = "a", rcode = "norec"}, |
| 168 |
{name = "emailbl.com.test6.uribl", type = "a", rcode = "norec"}, |
| 169 |
{name = "example.com.test3.uribl", type = "a", rcode = "norec"}, |
| 170 |
{name = "example.com.test6.uribl", type = "a", rcode = "norec"}, |
| 171 |
{name = "example.com.test7.uribl", type = "a", rcode = "norec"}, |
| 172 |
{name = "example.net.test3.uribl", type = "a", rcode = "norec"}, |
| 173 |
{name = "example.net.test7.uribl", type = "a", rcode = "norec"}, |
| 174 |
{name = "example.org.test2.uribl", type = "a", rcode = "norec"}, |
| 175 |
{name = "example.org.test3.uribl", type = "a", rcode = "norec"}, |
| 176 |
{name = "example.org.test7.uribl", type = "a", rcode = "norec"}, |
| 177 |
{name = "example.ru.test2.uribl", type = "a", rcode = "norec"}, |
| 178 |
{name = "example.ru.test7.uribl", type = "a", rcode = "norec"}, |
| 179 |
{name = "gdhhir83i5pjk6s8i3e5afwa4md7uns7.test.uribl", type = "a", rcode = "norec"}, |
| 180 |
{name = "k8qo8m33z19cqejfncirs85rf4nr9h3u.test.uribl", type = "a", rcode = "norec"}, |
| 181 |
{name = "kr1adm7tnzuudiftdt1g4t6yg1rbt1ez.test.uribl", type = "a", rcode = "norec"}, |
| 182 |
{name = "rspamd.com.test2.uribl", type = "a", rcode = "norec"}, |
| 183 |
{name = "rspamd.com.test3.uribl", type = "a", rcode = "norec"}, |
| 184 |
{name = "rspamd.com.test7.uribl", type = "a", rcode = "norec"}, |
| 185 |
{name = "rspamd.tk.test3.uribl", type = "a", rcode = "norec"}, |
| 186 |
{name = "rspamd.tk.test7.uribl", type = "a", rcode = "norec"}, |
| 187 |
{name = "sanchez.com.test2.uribl", type = "a", rcode = "norec"}, |
| 188 |
{name = "sanchez.com.test3.uribl", type = "a", rcode = "norec"}, |
| 189 |
{name = "sanchez.com.test7.uribl", type = "a", rcode = "norec"}, |
| 190 |
{name = "subdomain.emailbl.com.test6.uribl", type = "a", rcode = "norec"}, |
| 191 |
{name = "testtest.com.test2.uribl", type = "a", rcode = "norec"}, |
| 192 |
{name = "testtest.com.test3.uribl", type = "a", rcode = "norec"}, |
| 193 |
{name = "testtest.com.test7.uribl", type = "a", rcode = "norec"}, |
| 194 |
{name = "user.baddomain.com.test5.uribl", type = "a", rcode = "norec"}, |
| 195 |
{name = "user.example.com.test5.uribl", type = "a", rcode = "norec"}, |
| 196 |
{name = "xn--80arbjktj.xn--p1ai.test3.uribl", type = "a", rcode = "norec"}, |
| 197 |
{name = "xn--80arbjktj.xn--p1ai.test7.uribl", type = "a", rcode = "norec"}, |
| 198 |
{name = "y84tis6xzaf41h4p5kzxiw6puixnm43k.test.uribl", type = "a", rcode = "norec"}, |
| 199 |
# other stuff is here too! :\ |
| 200 |
{ # ed25519 |
| 201 |
name = "test._domainkey.example.com"; |
| 202 |
type = txt; |
| 203 |
replies = ["k=ed25519; p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y="]; |
| 204 |
}, |
| 205 |
{ |
| 206 |
name = "brisbane._domainkey.football.example.com"; |
| 207 |
type = txt; |
| 208 |
replies = ["v=DKIM1; k=ed25519; p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo="]; |
| 209 |
}, |
| 210 |
{ |
| 211 |
name = "test._domainkey.football.example.com"; |
| 212 |
type = txt; |
| 213 |
replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDkHlOQoBTzWRiGs5V6NpP3idY6Wk08a5qhdR6wy5bdOKb2jLQiY/J16JYi0Qvx/byYzCNb3W91y3FutACDfzwQ/BC/e/8uBsCR+yz1Lxj+PL6lHvqMKrM3rG4hstT5QjvHO9PzoxZyVYLzBfO2EeC3Ip3G+2kryOTIKT+l/K4w3QIDAQAB"], |
| 214 |
}, |
| 215 |
{ |
| 216 |
name = "dkim._domainkey.cacophony.za.org", |
| 217 |
type = "txt"; |
| 218 |
replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXtxBE5IiNRMcq2/lc2zErfdCvDFyQNBnMjbOjBQrPST2k4fdGbtpe5Iu5uS01Met+dAEf94XL8I0hwmYw+n70PP834zfJGi2egwGqrakpaWsCDPvIJZLkxJCJKQRA/zrQ622uEXdvYixVbsEGVw7U4wAGSmT5rU2eU1y63AlOlQIDAQAB"]; |
| 219 |
}, |
| 220 |
{ |
| 221 |
name = "eddsa._domainkey.cacophony.za.org", |
| 222 |
type = "txt"; |
| 223 |
replies = ["v=DKIM1; k=ed25519; p=+nU+aC33ICeS4zx8VUjFYCtxj0fRbHWQn2gP2hTkm9w="]; |
| 224 |
}, |
| 225 |
{ |
| 226 |
name = "dkim._domainkey.invalid.za.org", |
| 227 |
type = "txt"; |
| 228 |
replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEEXmNGQq7PUrr9Mg4UakTFHgXBCy2DOztkrZm+0OrVWtiRzGluxBkbOWTBwuU3/Yw97yTphBMQxzWFN603/f/KPAQcF/Lc1l+6kmIBBxNXjjGuOK/3PYKZVntUdKmqcQBYfnHdzH2Tohbuyx1a7xqnv6VSChqQrZU4CwkeT3+eQIDAQAB"]; |
| 229 |
}, |
| 230 |
{ |
| 231 |
name = "eddsa._domainkey.invalid.za.org", |
| 232 |
type = "txt"; |
| 233 |
replies = ["v=DKIM1; k=ed25519; p=Wkkrp5DJTvknDMGWYv8vm3p3sZjiQp03LZo80RregY8="]; |
| 234 |
}, |
| 235 |
{ |
| 236 |
name = "dkim._domainkey.rspamd.com", |
| 237 |
type = "txt"; |
| 238 |
replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCd/XhZBEGGAss48lEuMmwZv9lOFf6FTllBiQ3sPhdTpDdIPaW9TInW7iYnYD/bXHeVxYAyD/sKhYk6+qGBRu10rEi+iyPvLCIED+Boq0tEQosuKuV6Fjoomb+QhZY9KdjyZTjsrFPZ+wCkUY/30uTmpX2SwSqyxxlK0pUIsRgMAQIDAQAB"]; |
| 239 |
}, |
| 240 |
{ |
| 241 |
name = "_dmarc.rspamd.com", |
| 242 |
type = "txt"; |
| 243 |
rcode = 'norec'; |
| 244 |
}, |
| 245 |
{ |
| 246 |
name = "dkim._domainkey.highsecure.ru", |
| 247 |
type = "txt"; |
| 248 |
replies = ["p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDK4ZQYky30GH0Ak9OQ1fv3IdFNbpOtpa4S/PR20ZLgPXfd/FCA//ztUmu7kHlELI+/+4f8W+xX0oZlOc/cFxhopRjXZMlSsQqmWOZ40/GxWFBtcqafKu78FCqO7URqZUmMCM5Jlp4zt/yzH3dbYNG3i5PVlB5QtQnZvY+dvBL3dwIDAQAB"]; |
| 249 |
}, |
| 250 |
{ |
| 251 |
name = "_dmarc.cacophony.za.org", |
| 252 |
type = "txt"; |
| 253 |
replies = ["v=DMARC1; p=none; sp=reject"]; |
| 254 |
}, |
| 255 |
{ |
| 256 |
name = "_dmarc.my.mom.za.org", |
| 257 |
type = "txt"; |
| 258 |
replies = ["v=DMARC1; p=reject"]; |
| 259 |
}, |
| 260 |
{ |
| 261 |
name = "example.net", |
| 262 |
type = "txt"; |
| 263 |
replies = ["v=spf1 -all"]; |
| 264 |
}, |
| 265 |
{ |
| 266 |
name = "plusall.com", |
| 267 |
type = "txt"; |
| 268 |
replies = ["v=spf1 +all"]; |
| 269 |
}, |
| 270 |
{ |
| 271 |
name = "fail4.org.org.za", |
| 272 |
type = "txt"; |
| 273 |
replies = ["v=spf1 redirect=asdfsfewewrredfs"]; |
| 274 |
}, |
| 275 |
{ |
| 276 |
name = "_dmarc.reject.cacophony.za.org", |
| 277 |
type = "txt"; |
| 278 |
replies = ["v=DMARC1; p=reject"]; |
| 279 |
}, |
| 280 |
{ |
| 281 |
name = "spf.cacophony.za.org", |
| 282 |
type = "txt"; |
| 283 |
replies = ["v=spf1 ip4:8.8.4.4 -all"]; |
| 284 |
}, |
| 285 |
{ |
| 286 |
name = "fail7.org.org.za", |
| 287 |
type = "a"; |
| 288 |
rcode = 'norec'; |
| 289 |
}, |
| 290 |
{ |
| 291 |
name = "fail6.org.org.za", |
| 292 |
type = "txt"; |
| 293 |
replies = ["v=spf1 ip4:8.8.8.8 mx -all"]; |
| 294 |
}, |
| 295 |
{ |
| 296 |
name = "fail6.org.org.za", |
| 297 |
type = "mx"; |
| 298 |
rcode = 'norec'; |
| 299 |
}, |
| 300 |
{ |
| 301 |
name = "fail7.org.org.za", |
| 302 |
type = "aaaa"; |
| 303 |
rcode = 'norec'; |
| 304 |
}, |
| 305 |
{ |
| 306 |
name = "_dmarc.quarantine.cacophony.za.org", |
| 307 |
type = "txt"; |
| 308 |
replies = ["v=DMARC1; p=quarantine"]; |
| 309 |
}, |
| 310 |
{ |
| 311 |
name = "_dmarc.yo.mom.za.org", |
| 312 |
type = "txt"; |
| 313 |
replies = ["v=DMARC1; p=reject; aspf=s; adkim=s;"]; |
| 314 |
}, |
| 315 |
{ |
| 316 |
name = "yo.mom.za.org", |
| 317 |
type = "txt"; |
| 318 |
replies = ["v=spf1 ip4:37.48.67.26 -all"]; |
| 319 |
}, |
| 320 |
{ |
| 321 |
name = "testdkim._domainkey.mom.za.org", |
| 322 |
type = "txt"; |
| 323 |
replies = ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3v4VPE1QMHUzsMRbC8VzXNq82mDjiv9Gi1NB/YYC+vIYZT+sE/Uxnr0Clk8C2jgzEr3jcxgQEWZfMtEEg/EfEJvh4SrXWv9c0gw1EEfxKxX9i+r8yBQtc/EWospWVDkhF2lAvQAK1lV1ZiU7psJ6fh1CI39uZyWdAktZzWLf0zQIDAQAB"]; |
| 324 |
}, |
| 325 |
{ |
| 326 |
name = "_dmarc.rspamd.tk", |
| 327 |
type = "txt"; |
| 328 |
replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"]; |
| 329 |
}, |
| 330 |
{ |
| 331 |
name = "fail2.org.org.za", |
| 332 |
type = "txt"; |
| 333 |
replies = ["v=spf1 ip4:8.8.4.4 include:www.dnssec-failed.org -all"]; |
| 334 |
}, |
| 335 |
{ |
| 336 |
name = "fail3.org.org.za", |
| 337 |
type = "txt"; |
| 338 |
replies = ["v=spf1 ip4:8.8.8.8 include:total.barf -all"]; |
| 339 |
}, |
| 340 |
{ |
| 341 |
name = "mom.za.org", |
| 342 |
type = "txt"; |
| 343 |
replies = ["v=spf1 ip4:37.48.67.26 -all"]; |
| 344 |
}, |
| 345 |
{ |
| 346 |
name = "testdkim._domainkey.asdf.rspamd.tk", # testdkim._domainkey.asdf.rspamd.tk is an alias for rspamd.tk |
| 347 |
type = "txt"; |
| 348 |
replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"]; |
| 349 |
}, |
| 350 |
{ |
| 351 |
name = "testdkim._domainkey.rspamd.tk", # testdkim._domainkey.rspamd.tk is an alias for rspamd.tk |
| 352 |
type = "txt"; |
| 353 |
replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"]; |
| 354 |
}, |
| 355 |
{ |
| 356 |
name = "pass1.org.org.za", |
| 357 |
type = "txt"; |
| 358 |
replies = ["v=spf1 include:pass2.org.org.za -all"]; |
| 359 |
}, |
| 360 |
{ |
| 361 |
name = "95.142.99.88.in-addr.arpa", |
| 362 |
type = "ptr"; |
| 363 |
replies = ["mail.highsecure.ru"]; |
| 364 |
}, |
| 365 |
{ |
| 366 |
name = "mail.highsecure.ru", |
| 367 |
type = "a"; |
| 368 |
replies = ["88.99.142.95"]; |
| 369 |
}, |
| 370 |
{ |
| 371 |
name = "mail.highsecure.ru", |
| 372 |
type = "aaaa"; |
| 373 |
rcode = 'norec'; |
| 374 |
}, |
| 375 |
{ |
| 376 |
name = "1.0.66.128.in-addr.arpa", |
| 377 |
type = "ptr"; |
| 378 |
rcode = 'nxdomain'; |
| 379 |
}, |
| 380 |
{ |
| 381 |
name = "182.216.85.209.in-addr.arpa", |
| 382 |
type = "ptr"; |
| 383 |
replies = ["mail-qt0-f182.google.com"]; |
| 384 |
}, |
| 385 |
{ |
| 386 |
name = "crazyspf.cacophony.za.org", |
| 387 |
type = "txt"; |
| 388 |
replies = ["v=spf1 ptr:cacophony.za.org ptr:rspamd.com ptr:yahoo.com ptr:yahoo.net ptr:highsecure.ru -all"]; |
| 389 |
}, |
| 390 |
{ |
| 391 |
name = "pass2.org.org.za", |
| 392 |
type = "txt"; |
| 393 |
replies = ["v=spf1 ip4:8.8.8.8 -all"]; |
| 394 |
}, |
| 395 |
{ |
| 396 |
name = "_dmarc.yoni.za.org", |
| 397 |
type = "txt"; |
| 398 |
replies = ["v=DMARC1; p=reject; sp=none;"]; |
| 399 |
}, |
| 400 |
{ |
| 401 |
name = "fail10.org.org.za", |
| 402 |
type = "txt"; |
| 403 |
replies = ["v=spf1 redirect=fail5.org.org.za"]; |
| 404 |
}, |
| 405 |
{ |
| 406 |
name = "fail11.org.org.za", |
| 407 |
type = "txt"; |
| 408 |
replies = ["v=sPF1 ip4:8.8.8.8 -all"]; |
| 409 |
}, |
| 410 |
{ |
| 411 |
name = "fail5.org.org.za", |
| 412 |
type = "txt"; |
| 413 |
replies = ["v=spf1 OMGBARF"]; |
| 414 |
}, |
| 415 |
{ |
| 416 |
name = "fail7.org.org.za", |
| 417 |
type = "txt"; |
| 418 |
replies = ["v=spf1 ip4:8.8.8.8 a -all"]; |
| 419 |
}, |
| 420 |
{ |
| 421 |
name = "trusted.com", |
| 422 |
type = "txt"; |
| 423 |
replies = ["v=spf1 ip4:192.168.1.1"]; |
| 424 |
}, |
| 425 |
{ |
| 426 |
name = "external.com", |
| 427 |
type = "txt"; |
| 428 |
replies = ["v=spf1 ip4:37.48.67.26"]; |
| 429 |
}, |
| 430 |
{ |
| 431 |
name = "co.za", |
| 432 |
type = "txt"; |
| 433 |
rcode = 'norec'; |
| 434 |
}, |
| 435 |
{ |
| 436 |
name = "testdkim1._domainkey.yoni.za.org", |
| 437 |
type = "txt"; |
| 438 |
replies = ["v=DKIM1; k=rsa; p=BARF"]; |
| 439 |
}, |
| 440 |
{ |
| 441 |
name = "_dmarc.yoni.za.net", |
| 442 |
type = "txt"; |
| 443 |
replies = ["v=DMARC1; p=none; sp=quarantine"]; |
| 444 |
}, |
| 445 |
{ |
| 446 |
name = "za", |
| 447 |
type = "txt"; |
| 448 |
replies = ["Top-level domain for South Africa"]; |
| 449 |
}, |
| 450 |
{ |
| 451 |
name = "_dmarc.foo.yoni.za.org", |
| 452 |
type = "txt"; |
| 453 |
rcode = 'nxdomain'; |
| 454 |
}, |
| 455 |
{ |
| 456 |
name = "_dmarc.foo.cacophony.za.org", |
| 457 |
type = "txt"; |
| 458 |
rcode = 'nxdomain'; |
| 459 |
}, |
| 460 |
{ |
| 461 |
name = "_dmarc.foo.yoni.za.net", |
| 462 |
type = "txt"; |
| 463 |
rcode = 'nxdomain'; |
| 464 |
}, |
| 465 |
{ |
| 466 |
name = "_dmarc.dnssec-failed.org", |
| 467 |
type = "txt"; |
| 468 |
rcode = 'timeout'; |
| 469 |
}, |
| 470 |
{ |
| 471 |
name = "_dmarc.example.com", |
| 472 |
type = "txt"; |
| 473 |
rcode = 'nxdomain'; |
| 474 |
}, |
| 475 |
{ |
| 476 |
name = "_dmarc.zero_pct.com", |
| 477 |
type = "txt"; |
| 478 |
replies = ["v=DMARC1; p=reject; sp=quarantine; pct=0"]; |
| 479 |
}, |
| 480 |
{ |
| 481 |
name = "example.com", |
| 482 |
type = "txt"; |
| 483 |
replies = ["$Id: example.com 4415 2015-08-24 20:12:23Z davids $", "v=spf1 -all"]; |
| 484 |
}, |
| 485 |
{ |
| 486 |
name = "example.com", |
| 487 |
type = "a"; |
| 488 |
replies = ["93.184.216.34"]; |
| 489 |
}, |
| 490 |
{ |
| 491 |
name = "testdkim1._domainkey.dnssec-failed.org", |
| 492 |
type = "txt"; |
| 493 |
rcode = 'timeout'; |
| 494 |
}, |
| 495 |
{ |
| 496 |
name = "total.barf", |
| 497 |
type = "txt"; |
| 498 |
rcode = 'nxdomain'; |
| 499 |
}, |
| 500 |
{ |
| 501 |
name = "_dmarc.foo.cacophony.za.org", |
| 502 |
type = "txt"; |
| 503 |
rcode = 'nxdomain'; |
| 504 |
}, |
| 505 |
{ |
| 506 |
name = "zzzzaaaa", |
| 507 |
type = "txt"; |
| 508 |
rcode = 'nxdomain'; |
| 509 |
}, |
| 510 |
{ |
| 511 |
name = "asdfsfewewrredfs", |
| 512 |
type = "txt"; |
| 513 |
rcode = 'nxdomain'; |
| 514 |
}, |
| 515 |
{ |
| 516 |
name = "95.142.99.88.asn.rspamd.com", |
| 517 |
type = "txt"; |
| 518 |
replies = ["24940|88.99.0.0/16|DE|ripencc|"]; |
| 519 |
}, |
| 520 |
{ |
| 521 |
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", |
| 522 |
type = "txt"; |
| 523 |
replies = ["20857|2a01:7c8::/32|NL|ripencc|"]; |
| 524 |
}, |
| 525 |
{ |
| 526 |
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", |
| 527 |
type = "txt"; |
| 528 |
rcode = 'nxdomain'; |
| 529 |
}, |
| 530 |
{ |
| 531 |
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", |
| 532 |
type = "a"; |
| 533 |
rcode = 'nxdomain'; |
| 534 |
}, |
| 535 |
{ |
| 536 |
name = "rspamd.com", |
| 537 |
type = "txt"; |
| 538 |
replies = ["v=spf1 mx -all"]; |
| 539 |
}, |
| 540 |
{ |
| 541 |
name = "rspamd.com", |
| 542 |
type = "mx"; |
| 543 |
replies = ["10 mail.highsecure.ru"]; |
| 544 |
}, |
| 545 |
{ |
| 546 |
name = "95.142.99.88.rspamd.com", |
| 547 |
type = "a"; |
| 548 |
rcode = 'norec'; |
| 549 |
}, |
| 550 |
{ |
| 551 |
name = "95.142.99.88.rspamd.com", |
| 552 |
type = "aaaa"; |
| 553 |
rcode = 'norec'; |
| 554 |
}, |
| 555 |
{ |
| 556 |
name = "2.0.0.127.rspamd.com", |
| 557 |
type = "a"; |
| 558 |
replies = ["127.0.0.1"]; |
| 559 |
}, |
| 560 |
{ |
| 561 |
name = "8.8.8.8.asn.rspamd.com", |
| 562 |
type = "txt"; |
| 563 |
replies = ["15169|8.8.8.0/24|US|arin|"]; |
| 564 |
}, |
| 565 |
{ |
| 566 |
name = "8.8.8.8.asn.rspamd.com", |
| 567 |
type = "a"; |
| 568 |
rcode = 'nxdomain'; |
| 569 |
}, |
| 570 |
{ |
| 571 |
name = "10.0.1.10.asn.rspamd.com", |
| 572 |
type = "txt"; |
| 573 |
rcode = 'nxdomain'; |
| 574 |
}, |
| 575 |
{ |
| 576 |
name = "10.0.1.10.asn.rspamd.com", |
| 577 |
type = "a"; |
| 578 |
rcode = 'nxdomain'; |
| 579 |
}, |
| 580 |
{ |
| 581 |
name = "10.0.1.11.asn.rspamd.com", |
| 582 |
type = "txt"; |
| 583 |
rcode = 'nxdomain'; |
| 584 |
}, |
| 585 |
{ |
| 586 |
name = "10.0.1.11.asn.rspamd.com", |
| 587 |
type = "a"; |
| 588 |
rcode = 'nxdomain'; |
| 589 |
}, |
| 590 |
{ |
| 591 |
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", |
| 592 |
type = "a"; |
| 593 |
rcode = 'nxdomain'; |
| 594 |
}, |
| 595 |
{ |
| 596 |
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", |
| 597 |
type = "a"; |
| 598 |
rcode = 'nxdomain'; |
| 599 |
}, |
| 600 |
{ |
| 601 |
name = "test.com", |
| 602 |
type = "txt"; |
| 603 |
replies = [""]; |
| 604 |
}, |
| 605 |
{ |
| 606 |
name = "other.com", |
| 607 |
type = "txt"; |
| 608 |
rcode = 'norec'; |
| 609 |
}, |
| 610 |
{ |
| 611 |
name = "bob", |
| 612 |
type = "txt"; |
| 613 |
rcode = 'nxdomain'; |
| 614 |
}, |
| 615 |
{ |
| 616 |
name = "mail.highsecure.ru", |
| 617 |
type = "aaaa"; |
| 618 |
rcode = 'norec'; |
| 619 |
}, |
| 620 |
{ |
| 621 |
name = "mail.highsecure.ru", |
| 622 |
type = "a"; |
| 623 |
replies = ["88.99.142.95"]; |
| 624 |
}, |
| 625 |
{ |
| 626 |
name = "4.3.2.1.rspamd.com", |
| 627 |
type = "a"; |
| 628 |
rcode = 'nxdomain'; |
| 629 |
}, |
| 630 |
{ |
| 631 |
name = "4.3.2.1.asn.rspamd.com", |
| 632 |
type = "txt"; |
| 633 |
rcode = 'nxdomain'; |
| 634 |
}, |
| 635 |
{ |
| 636 |
name = "1.0.0.127.rspamd.com", |
| 637 |
type = "a"; |
| 638 |
rcode = 'nxdomain'; |
| 639 |
}, |
| 640 |
{ |
| 641 |
name = "114.47.228.46.rspamd.com", |
| 642 |
type = "a"; |
| 643 |
rcode = 'nxdomain'; |
| 644 |
}, |
| 645 |
{ |
| 646 |
name = "114.47.228.46.asn.rspamd.com", |
| 647 |
type = "txt"; |
| 648 |
replies = ["34010|46.228.40.0/21|GB|ripencc|"]; |
| 649 |
}, |
| 650 |
{ |
| 651 |
name = "10.0.1.10.rspamd.com", |
| 652 |
type = "a"; |
| 653 |
rcode = 'nxdomain'; |
| 654 |
}, |
| 655 |
{ |
| 656 |
name = "10.0.1.11.rspamd.com", |
| 657 |
type = "a"; |
| 658 |
rcode = 'nxdomain'; |
| 659 |
}, |
| 660 |
{ |
| 661 |
name = "other.org", |
| 662 |
type = "txt"; |
| 663 |
rcode = 'norec'; |
| 664 |
}, |
| 665 |
{ |
| 666 |
name = "8.8.8.8.rspamd.com", |
| 667 |
type = "a"; |
| 668 |
rcode = 'nxdomain'; |
| 669 |
}, |
| 670 |
{ |
| 671 |
name = "rspamd.tk", |
| 672 |
type = "txt"; |
| 673 |
replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"]; |
| 674 |
}, |
| 675 |
{ |
| 676 |
name = "fail1.org.org.za", |
| 677 |
type = "txt"; |
| 678 |
replies = ["v=spf1 redirect=www.dnssec-failed.org"]; |
| 679 |
}, |
| 680 |
{ |
| 681 |
name = "www.dnssec-failed.org", |
| 682 |
type = "txt"; |
| 683 |
rcode = 'timeout'; |
| 684 |
}, |
| 685 |
{ |
| 686 |
name = "www.dnssec-failed.org", |
| 687 |
type = "mx"; |
| 688 |
rcode = 'timeout'; |
| 689 |
}, |
| 690 |
{ |
| 691 |
name = "www.dnssec-failed.org", |
| 692 |
type = "a"; |
| 693 |
rcode = 'timeout'; |
| 694 |
}, |
| 695 |
{ |
| 696 |
name = "www.dnssec-failed.org", |
| 697 |
type = "aaaa"; |
| 698 |
rcode = 'norec'; |
| 699 |
}, |
| 700 |
{ |
| 701 |
name = "cacophony.za.org", |
| 702 |
type = "txt"; |
| 703 |
replies = ["v=spf1 redirect=asdfsfewewrredfs"]; |
| 704 |
}, |
| 705 |
{ |
| 706 |
name = "fail9.org.org.za", |
| 707 |
type = "txt"; |
| 708 |
replies = ["v=spf1 ip4:8.8.8.8 mx:www.dnssec-failed.org -all"]; |
| 709 |
}, |
| 710 |
{ |
| 711 |
name = "fail8.org.org.za", |
| 712 |
type = "txt"; |
| 713 |
replies = ["v=spf1 ip4:8.8.8.8 a:www.dnssec-failed.org -all"]; |
| 714 |
}, |
| 715 |
{ |
| 716 |
name = "1.2.3.4.fake.rbl"; |
| 717 |
type = "a"; |
| 718 |
replies = ["127.0.0.2"]; |
| 719 |
}, |
| 720 |
{ |
| 721 |
name = "2.2.3.4.fake.rbl"; |
| 722 |
type = "a"; |
| 723 |
replies = ["127.0.0.10"]; |
| 724 |
}, |
| 725 |
{ |
| 726 |
name = "3.2.3.4.fake.rbl"; |
| 727 |
type = "a"; |
| 728 |
replies = ["127.0.0.2", "127.0.0.3"]; |
| 729 |
}, |
| 730 |
{ |
| 731 |
name = "4.2.3.4.fake.rbl"; |
| 732 |
type = "a"; |
| 733 |
replies = ["127.0.0.2"]; |
| 734 |
}, |
| 735 |
{ |
| 736 |
name = "4.2.3.4.fake.wl"; |
| 737 |
type = "a"; |
| 738 |
replies = ["127.0.0.2"]; |
| 739 |
}, |
| 740 |
{ |
| 741 |
name = "4.3.2.1.fake.rbl"; |
| 742 |
type = "a"; |
| 743 |
rcode = 'nxdomain'; |
| 744 |
}, |
| 745 |
{ |
| 746 |
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"; |
| 747 |
type = "a"; |
| 748 |
replies = ["127.0.0.2"]; |
| 749 |
}, |
| 750 |
{ |
| 751 |
name = "131.193.18.151.fake.rbl"; |
| 752 |
type = "a"; |
| 753 |
replies = ["127.0.0.3"]; |
| 754 |
}, |
| 755 |
# SURBL tests |
| 756 |
{ |
| 757 |
name = "rciuosbadgpq6b5wt436nhgnwzmfh9w9.test.uribl"; |
| 758 |
type = a; |
| 759 |
replies = ["127.0.0.2"]; |
| 760 |
}, |
| 761 |
{ |
| 762 |
# testtest.com |
| 763 |
name = "rcf1ecxtxrrpfncqzsdaiezjkf7f1rzz.test.uribl"; |
| 764 |
type = a; |
| 765 |
replies = ["127.0.0.2"]; |
| 766 |
}, |
| 767 |
{ |
| 768 |
name = "jhcszdsmo3wuj5mp8t38kdisdmr3ib3q.test.uribl"; |
| 769 |
type = a; |
| 770 |
replies = ["127.0.0.2"]; |
| 771 |
}, |
| 772 |
{ |
| 773 |
name = "g9ifs3q39oh5jwru94cj7ffaqd6rfyq6.test.uribl"; |
| 774 |
type = a; |
| 775 |
replies = ["127.0.0.2"]; |
| 776 |
}, |
| 777 |
{ |
| 778 |
name = "xn--80arbjktj.xn--p1ai.test2.uribl"; |
| 779 |
type = a; |
| 780 |
replies = ["127.0.1.2"]; |
| 781 |
}, |
| 782 |
{ |
| 783 |
name = "мойсайт.рф.test2.uribl"; |
| 784 |
type = a; |
| 785 |
replies = ["127.0.1.2"]; |
| 786 |
}, |
| 787 |
{ |
| 788 |
name = "user.emailbl.com.test5.uribl"; |
| 789 |
type = a; |
| 790 |
replies = ["127.0.0.2"]; |
| 791 |
}, |
| 792 |
{ |
| 793 |
name = "user.subdomain.emailbl.com.test5.uribl"; |
| 794 |
type = a; |
| 795 |
replies = ["127.0.0.2"]; |
| 796 |
}, |
| 797 |
{ |
| 798 |
name = "baddomain.com.test6.uribl"; |
| 799 |
type = a; |
| 800 |
replies = ["127.0.0.2"]; |
| 801 |
}, |
| 802 |
{ |
| 803 |
name = "user.subdomain.baddomain.com.test5.uribl"; |
| 804 |
type = a; |
| 805 |
replies = ["127.0.0.2"]; |
| 806 |
}, |
| 807 |
{ |
| 808 |
name = "example.com.test2.uribl"; |
| 809 |
type = a; |
| 810 |
replies = ["127.0.1.2"]; |
| 811 |
}, |
| 812 |
{ |
| 813 |
name = "user.example.com.test2.uribl"; |
| 814 |
type = a; |
| 815 |
replies = ["127.0.1.5"]; |
| 816 |
}, |
| 817 |
{ |
| 818 |
name = "example.net.test2.uribl"; |
| 819 |
type = a; |
| 820 |
replies = ["127.0.1.4"]; |
| 821 |
}, |
| 822 |
{ |
| 823 |
name = "rspamd.tk.test2.uribl"; |
| 824 |
type = a; |
| 825 |
replies = ["127.0.1.4"]; |
| 826 |
}, |
| 827 |
{ |
| 828 |
name = "example.org.test3.uribl"; |
| 829 |
type = a; |
| 830 |
replies = ["127.0.0.2"]; |
| 831 |
}, |
| 832 |
{ |
| 833 |
name = "example.ru.test3.uribl"; |
| 834 |
type = a; |
| 835 |
replies = ["127.0.0.12"]; |
| 836 |
}, |
| 837 |
{ |
| 838 |
name = "example.ru"; |
| 839 |
type = a; |
| 840 |
replies = ["8.8.8.8", "8.8.8.9"]; |
| 841 |
}, |
| 842 |
{ |
| 843 |
name = "8.8.8.8.test4.uribl"; |
| 844 |
type = a; |
| 845 |
replies = ["127.0.0.4", "127.0.0.11"]; |
| 846 |
}, |
| 847 |
{ |
| 848 |
name = "uppht14nj4fsoycu3huctg9d5psx9je4.test.uribl"; |
| 849 |
type = a; |
| 850 |
replies = ["127.0.0.2"]; |
| 851 |
}, |
| 852 |
{ |
| 853 |
name = "rspamd-test.com.test2.uribl"; |
| 854 |
type = a; |
| 855 |
replies = ["127.0.1.2"]; |
| 856 |
}, |
| 857 |
{ |
| 858 |
name = "9.8.8.8.test4.uribl"; |
| 859 |
type = a; |
| 860 |
replies = ["127.0.0.3"]; |
| 861 |
}, |
| 862 |
{ |
| 863 |
name = "4.very.dirty.sanchez.com.test7.uribl"; |
| 864 |
type = a; |
| 865 |
replies = ["127.0.0.2"]; |
| 866 |
}, |
| 867 |
{ |
| 868 |
name = "clean.dirty.sanchez.com.test7.uribl"; |
| 869 |
type = a; |
| 870 |
replies = ["127.0.0.2"]; |
| 871 |
}, |
| 872 |
{ |
| 873 |
name = "not.dirty.sanchez.com.test7.uribl"; |
| 874 |
type = a; |
| 875 |
replies = ["127.0.0.2"]; |
| 876 |
}, |
| 877 |
{ |
| 878 |
name = "41.black.sanchez.com.test7.uribl"; |
| 879 |
type = a; |
| 880 |
replies = ["127.0.0.2"]; |
| 881 |
}, |
| 882 |
{ |
| 883 |
name = "black.sanchez.com.test7.uribl"; |
| 884 |
type = a; |
| 885 |
replies = ["127.0.0.2"]; |
| 886 |
}, |
| 887 |
{ |
| 888 |
name = "dirty.sanchez.com.test8.uribl"; |
| 889 |
type = a; |
| 890 |
replies = ["127.0.0.2"]; |
| 891 |
}, |
| 892 |
{ |
| 893 |
name = "very.dirty.sanchez.com.test8.uribl"; |
| 894 |
type = a; |
| 895 |
replies = ["127.0.0.2"]; |
| 896 |
}, |
| 897 |
{ |
| 898 |
name = "41.black.sanchez.com.test8.uribl"; |
| 899 |
type = a; |
| 900 |
replies = ["127.0.0.2"]; |
| 901 |
}, |
| 902 |
{ |
| 903 |
name = "black.sanchez.com.test8.uribl"; |
| 904 |
type = a; |
| 905 |
replies = ["127.0.0.2"]; |
| 906 |
}, |
| 907 |
{ |
| 908 |
name = "example.com.test9.uribl"; |
| 909 |
type = a; |
| 910 |
replies = ["127.0.0.2"]; |
| 911 |
}, |
| 912 |
{ |
| 913 |
name = "example.org.test9.uribl"; |
| 914 |
type = a; |
| 915 |
replies = ["127.0.0.2"]; |
| 916 |
}, |
| 917 |
{ |
| 918 |
name = "4.3.2.1.test9.uribl"; |
| 919 |
type = a; |
| 920 |
replies = ["127.0.0.2"]; |
| 921 |
}, |
| 922 |
{ |
| 923 |
name = "judo.za.org.test9.uribl"; |
| 924 |
type = a; |
| 925 |
replies = ["127.0.0.2"]; |
| 926 |
}, |
| 927 |
{ |
| 928 |
name = "12.11.10.9.test9.uribl"; |
| 929 |
type = a; |
| 930 |
replies = ["127.0.0.2"]; |
| 931 |
}, |
| 932 |
{ |
| 933 |
name = "8.7.6.5.test9.uribl"; |
| 934 |
type = a; |
| 935 |
replies = ["127.0.0.2"]; |
| 936 |
}, |
| 937 |
{ |
| 938 |
name = "8.8.8.8.test9.uribl"; |
| 939 |
type = a; |
| 940 |
replies = ["127.0.0.2"]; |
| 941 |
}, |
| 942 |
{ |
| 943 |
name = "1.2.3.4.test10.uribl"; |
| 944 |
type = a; |
| 945 |
replies = ["127.0.0.2"]; |
| 946 |
}, |
| 947 |
{ |
| 948 |
name = "4.3.2.1.test10.uribl"; |
| 949 |
type = a; |
| 950 |
replies = ["127.0.0.2"]; |
| 951 |
}, |
| 952 |
{ |
| 953 |
name = "judo.za.org.test10.uribl"; |
| 954 |
type = a; |
| 955 |
replies = ["127.0.0.2"]; |
| 956 |
}, |
| 957 |
{ |
| 958 |
name = "example.com.test10.uribl"; |
| 959 |
type = a; |
| 960 |
replies = ["127.0.0.2"]; |
| 961 |
}, |
| 962 |
{ |
| 963 |
name = "example.org.test10.uribl"; |
| 964 |
type = a; |
| 965 |
replies = ["127.0.0.2"]; |
| 966 |
}, |
| 967 |
{ |
| 968 |
name = "site.resolveme", |
| 969 |
type = "a"; |
| 970 |
replies = ["127.0.0.1"]; |
| 971 |
}, |
| 972 |
{ |
| 973 |
name = "not-resolvable.com", |
| 974 |
type = "a"; |
| 975 |
rcode = 'norec'; |
| 976 |
}, |
| 977 |
# TODO: add IPv6 tests |
| 978 |
]; |
| 979 |
} |
| 980 |
} |
| 981 |
|
| 982 |
phishing { |
| 983 |
symbol = "PHISHING"; |
| 984 |
strict_domains = { |
| 985 |
STRICT_PHISHING = [ |
| 986 |
"{= env.TESTDIR =}/configs/maps/strict.phishing", |
| 987 |
]; |
| 988 |
STRICTER_PHISHING = [ |
| 989 |
"{= env.TESTDIR =}/configs/maps/stricter.phishing" |
| 990 |
] |
| 991 |
} |
| 992 |
} |
| 993 |
|
| 994 |
redis { |
| 995 |
servers = "{= env.REDIS_ADDR =}:{= env.REDIS_PORT =}"; |
| 996 |
expand_keys = true; |
| 997 |
} |
| 998 |
|
| 999 |
regexp { |
| 1000 |
CONFIG_SELECTOR_RE_RCPT_SUBJECT { |
| 1001 |
re = 'test=/[email protected] some subject/$', |
| 1002 |
score = 100500, |
| 1003 |
} |
| 1004 |
} |
| 1005 |
|
| 1006 |
spf { |
| 1007 |
external_relay = [ |
| 1008 |
"{= env.TESTDIR =}/configs/maps/external_relay_ip.list", |
| 1009 |
]; |
| 1010 |
} |
| 1011 |
|
| 1012 |
symbols { |
| 1013 |
FOUR_POINTS = { |
| 1014 |
score = 4.0 |
| 1015 |
} |
| 1016 |
THREE_POINTS = { |
| 1017 |
score = 3.0 |
| 1018 |
} |
| 1019 |
TWENTY_POINTS = { |
| 1020 |
score = 20.0 |
| 1021 |
} |
| 1022 |
SYM1 = { |
| 1023 |
score = 1.0 |
| 1024 |
} |
| 1025 |
} |
| 1026 |
|
| 1027 |
group "test" { |
| 1028 |
max_score = 10; |
| 1029 |
min_score = -10; |
| 1030 |
|
| 1031 |
symbols = { |
| 1032 |
"GR_POSITIVE1" = { |
| 1033 |
score = 1.0; |
| 1034 |
}, |
| 1035 |
"GR_POSITIVE2" = { |
| 1036 |
score = 2.0; |
| 1037 |
}, |
| 1038 |
"GR_POSITIVE4" = { |
| 1039 |
score = 4.0; |
| 1040 |
}, |
| 1041 |
"GR_POSITIVE8" = { |
| 1042 |
score = 8.0; |
| 1043 |
}, |
| 1044 |
"GR_POSITIVE16" = { |
| 1045 |
score = 16.0; |
| 1046 |
}, |
| 1047 |
|
| 1048 |
"GR_NEGATIVE1" = { |
| 1049 |
score = -1.0; |
| 1050 |
}, |
| 1051 |
"GR_NEGATIVE2" = { |
| 1052 |
score = -2.0; |
| 1053 |
}, |
| 1054 |
"GR_NEGATIVE4" = { |
| 1055 |
score = -4.0; |
| 1056 |
}, |
| 1057 |
"GR_NEGATIVE8" = { |
| 1058 |
score = -8.0; |
| 1059 |
}, |
| 1060 |
"GR_NEGATIVE16" = { |
| 1061 |
score = -16.0; |
| 1062 |
}, |
| 1063 |
} |
| 1064 |
} |
| 1065 |
|
| 1066 |
composites { |
| 1067 |
TEST_POSTFILTER_COMPOSITE { |
| 1068 |
expression = "TEST_FILTER_SYM & TEST_POSTFILTER_SYM"; |
| 1069 |
score = 10.0; |
| 1070 |
} |
| 1071 |
} |
| 1072 |
|
| 1073 |
worker "controller" { |
| 1074 |
bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"; |
| 1075 |
bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER_SSL =} ssl"; |
| 1076 |
ssl_cert = "{= env.SSL_CERT =}"; |
| 1077 |
ssl_key = "{= env.SSL_KEY =}"; |
| 1078 |
keypair { |
| 1079 |
pubkey = "{= env.KEY_PUB1 =}"; |
| 1080 |
privkey = "{= env.KEY_PVT1 =}"; |
| 1081 |
} |
| 1082 |
} |
| 1083 |
|
| 1084 |
worker "normal" { |
| 1085 |
count = 1; |
| 1086 |
bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"; |
| 1087 |
bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL_SSL =} ssl"; |
| 1088 |
ssl_cert = "{= env.SSL_CERT =}"; |
| 1089 |
ssl_key = "{= env.SSL_KEY =}"; |
| 1090 |
keypair { |
| 1091 |
pubkey = "{= env.KEY_PUB1 =}"; |
| 1092 |
privkey = "{= env.KEY_PVT1 =}"; |
| 1093 |
} |
| 1094 |
} |