]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add tests for multi prefixes RBLs
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 11:01:47 +0000 (12:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 11:01:47 +0000 (12:01 +0100)
test/functional/configs/rbl.conf

index a66deea6a558ddf80e1cbe8d8a570c58438c4cae..4a9318a0a2322c40a786040a3fadf2ad8e1ad376 100644 (file)
@@ -6,23 +6,15 @@ rbl {
       ipv6 = true;
       rbl = "fake.rbl";
       symbol = "FAKE_RBL_UNKNOWN";
-      unknown = true;
-      returncodes = {
-        "FAKE_RBL_CODE_2" = "127.0.0.2";
-        "FAKE_RBL_CODE_3" = "127.0.0.3";
-      }
-    }
-    fake_received {
-      from = false;
-      ipv4 = true;
-      ipv6 = true;
       received = true;
-      rbl = "fake.rbl";
-      symbol = "FAKE_RECEIVED_RBL_UNKNOWN";
+      symbols_prefixes = {
+        received = 'FAKE_RECEIVED_RBL',
+        from = 'FAKE_RBL',
+      }
       unknown = true;
       returncodes = {
-        "FAKE_RECEIVED_RBL_CODE_2" = "127.0.0.2";
-        "FAKE_RECEIVED_RBL_CODE_3" = "127.0.0.3";
+        "CODE_2" = "127.0.0.2";
+        "CODE_3" = "127.0.0.3";
       }
     }
     fake_whitelist {