diff options
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 |