]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix emailbl tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Sep 2019 14:11:27 +0000 (15:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Sep 2019 14:11:27 +0000 (15:11 +0100)
src/plugins/lua/rbl.lua
test/functional/configs/surbl.conf

index 9feab5aeaf089773bc60343335100bd291b07f90..b9682e0fcbf8108691785e6795cf1531da8caddc 100644 (file)
@@ -857,6 +857,8 @@ local function add_rbl(key, rbl, global_opts)
 
     rspamd_logger.infox(rspamd_config, 'added rbl rule %s: %s',
         rbl.symbol, description)
+    lua_util.debugm(N, rspamd_config, 'rule dump for %s: %s',
+        rbl.symbol, rbl)
 
     if rbl.dkim then
       rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK')
index 823aec25c0e544b31bcea59dff44e1004e80f8e2..5c244e25760ffaf2ef7fffa682c27075cdbae78c 100644 (file)
@@ -64,21 +64,24 @@ EOD;
 end
 EOD;
     }
+
+  }
+}
+
+emails {
+  "whitelist" = [
+    "rspamd-test.com"
+  ]
+  rules {
     "RSPAMD_EMAILBL_FULL" {
-      suffix = "test5.uribl";
-      check_emails = true;
-      emails_domainonly = false;
-      urls = false;
-      replyto = true;
-      images = false;
+        dnsbl = "test5.uribl";
+        domain_only = false;
+        replyto = true;
+        }
+      "RSPAMD_EMAILBL_DOMAINONLY" {
+        dnsbl = "test6.uribl";
+        domain_only = true;
+        replyto = true;
       }
-    "RSPAMD_EMAILBL_DOMAINONLY" {
-      suffix = "test6.uribl";
-      check_emails = true;
-      emails_domainonly = true;
-      urls = false;
-      replyto = true;
-      images = false;
-    }
   }
 }
\ No newline at end of file