diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-24 19:08:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-24 19:08:30 +0100 |
commit | 91443f3b8aba3abe7d0a5cef117c236a2aa8f4da (patch) | |
tree | 6f3d60c3ed622973def5cce6138ae2ca360e20f3 /test/functional/configs/surbl.conf | |
parent | c801fdefc50255b6ab3c5fdb38376846eb0fa6f0 (diff) | |
download | rspamd-91443f3b8aba3abe7d0a5cef117c236a2aa8f4da.tar.gz rspamd-91443f3b8aba3abe7d0a5cef117c236a2aa8f4da.zip |
[Test] Add SURBL tests
Diffstat (limited to 'test/functional/configs/surbl.conf')
-rw-r--r-- | test/functional/configs/surbl.conf | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/functional/configs/surbl.conf b/test/functional/configs/surbl.conf new file mode 100644 index 000000000..944ee747f --- /dev/null +++ b/test/functional/configs/surbl.conf @@ -0,0 +1,42 @@ + +surbl { + rules { + "RSPAMD_URIBL" { + suffix = "test.uribl"; + check_dkim = true; + check_emails = true; + process_script =<<EOD +function(url, suffix) + local cr = require "rspamd_cryptobox_hash" + local h = cr.create(url):base32():sub(1, 32) + return string.format("%s.%s", h, suffix) +end +EOD; + } + "DBL" { + suffix = "test2.uribl"; + no_ip = true; + check_emails = true; + check_dkim = true; + + ips = { + # spam domain + DBL_SPAM = "127.0.1.2"; + # phish domain + DBL_PHISH = "127.0.1.4"; + } + } + + "URIBL_MULTI" { + suffix = "test3.uribl"; + check_dkim = true; + check_emails = true; + bits { + URIBL_BLOCKED = 1; + URIBL_BLACK = 2; + URIBL_GREY = 4; + URIBL_RED = 8; + } + } + } +}
\ No newline at end of file |