]> source.dussan.org Git - rspamd.git/commitdiff
[Conf] Switch RAMBLER_URIBL to a locally managed source
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Jul 2017 18:09:41 +0000 (19:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Jul 2017 18:09:41 +0000 (19:09 +0100)
conf/modules.d/surbl.conf

index 2d5711b0db3c676ba941bbf74f0c46708cf52af9..0e6db538ab31b18f4c8733c72368d3112277e7d5 100644 (file)
@@ -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";