aboutsummaryrefslogtreecommitdiffstats
path: root/conf/modules.d
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-07 19:09:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-07 19:09:41 +0100
commit86c0f5cb4f00957f65b0441eaf20957fbfc8932b (patch)
tree28b156c95c7157b0be738458b79e945be87b3c2d /conf/modules.d
parent8c673af47019c362d94910e9e69b46d098b9cceb (diff)
downloadrspamd-86c0f5cb4f00957f65b0441eaf20957fbfc8932b.tar.gz
rspamd-86c0f5cb4f00957f65b0441eaf20957fbfc8932b.zip
[Conf] Switch RAMBLER_URIBL to a locally managed source
Diffstat (limited to 'conf/modules.d')
-rw-r--r--conf/modules.d/surbl.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/conf/modules.d/surbl.conf b/conf/modules.d/surbl.conf
index 2d5711b0d..0e6db538a 100644
--- a/conf/modules.d/surbl.conf
+++ b/conf/modules.d/surbl.conf
@@ -44,7 +44,14 @@ surbl {
}
}
"RAMBLER_URIBL" {
- suffix = "uribl.rambler.ru";
+ suffix = "uribl.rspamd.com";
+ process_script =<<EOD
+function(url, suffix)
+ local cr = require "rspamd_cryptobox_hash"
+ h = cr.create(url):base32():sub(1, 32)
+ return string.format("%s.%s", h, suffix)
+end
+EOD;
}
"DBL" {
suffix = "dbl.spamhaus.org";