]> source.dussan.org Git - rspamd.git/commitdiff
[Conf] Use multi-prefixes RBLs in the default config
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 11:06:11 +0000 (12:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 11:06:11 +0000 (12:06 +0100)
conf/modules.d/rbl.conf

index c535a7bf6b89d62338558460414b49e7b1bee6d4..96d4425253fc4b1bbaf7f93b68b6a4769cc01127 100644 (file)
@@ -31,30 +31,19 @@ rbl {
       symbol = "RBL_SPAMHAUS";
       rbl = "zen.spamhaus.org";
       ipv6 = true;
-      returncodes {
-        RBL_SPAMHAUS_SBL = "127.0.0.2";
-        RBL_SPAMHAUS_CSS = "127.0.0.3";
-        RBL_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
-            "127.0.0.6", "127.0.0.7"];
-        RBL_SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
-        RBL_SPAMHAUS_DROP = "127.0.0.9";
-      }
-    }
-
-    spamhaus_received {
-      symbol = "RECEIVED_SPAMHAUS";
-      rbl = "zen.spamhaus.org";
-      ipv6 = true;
       received = true;
-      from = false;
-      ignore_whitelists = true;
+      from = true;
+      symbols_prefixes = {
+        received = 'RECEIVED',
+        from = 'RBL',
+      }
       returncodes {
-        RECEIVED_SPAMHAUS_SBL = "127.0.0.2";
-        RECEIVED_SPAMHAUS_CSS = "127.0.0.3";
-        RECEIVED_SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
+        SPAMHAUS_SBL = "127.0.0.2";
+        SPAMHAUS_CSS = "127.0.0.3";
+        SPAMHAUS_XBL = ["127.0.0.4", "127.0.0.5",
             "127.0.0.6", "127.0.0.7"];
-        RECEIVED_SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
-        RECEIVED_SPAMHAUS_DROP = "127.0.0.9";
+        SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
+        SPAMHAUS_DROP = "127.0.0.9";
       }
     }
 
@@ -134,18 +123,15 @@ rbl {
     }
 
     blocklistde {
-      symbol = "RBL_BLOCKLISTDE";
-      rbl = "bl.blocklist.de";
-      ipv6 = true;
-    }
-
-    blocklistde_received {
-      symbol = "RECEIVED_BLOCKLISTDE";
+      symbols_prefixes = {
+        received = 'RECEIVED',
+        from = 'RBL',
+      }
+      symbol = "BLOCKLISTDE";
       rbl = "bl.blocklist.de";
       ipv6 = true;
       received = true;
-      from = false;
-      ignore_whitelists = true;
+      from = true;
     }
 
     dnswl_dwl {