]> source.dussan.org Git - rspamd.git/commitdiff
[Conf] Add MSBL proposed return codes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 13:00:49 +0000 (14:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 May 2018 13:00:49 +0000 (14:00 +0100)
conf/modules.d/emails.conf
conf/scores.d/surbl_group.conf

index accdd4d2d91b41b636615a45484fba165d403f8f..74a67cf468327adab5132368d8e8112446fc395f 100644 (file)
@@ -22,13 +22,25 @@ emails {
             dnsbl = "email.rspamd.com";
             check_replyto = true;
             hash = "blake2";
+            returncodes = {
+              RSPAMD_EMAILBL = "127.0.0.2";
+            }
         }
         MSBL_EBL {
             dnsbl = "ebl.msbl.org";
             domain_only = false;
             check_replyto = true;
             hash = "sha1";
-            expect_ip = "127.0.0.2";
+            returncodes = {
+              MSBL_EBL = [
+                "127.0.0.2",
+                "127.0.0.3"
+              ];
+              MSBL_EBL_GREY = [
+                "127.0.1.2",
+                "127.0.1.3"
+              ];
+            }
         }
     }
     .include(try=true,priority=5) "${DBDIR}/dynamic/emails.conf"
index 839c68e61bc2dcd2135b50f3110e58cef860ce18..9605df5c05024f199ce234c56d38f6b34af50b4b 100644 (file)
@@ -57,6 +57,12 @@ symbols = {
         one_shot = true;
     }
 
+    "MSBL_EBL_GREY" {
+        weight = 0.5; # TODO: test it
+        description = "MSBL emailbl grey list";
+        one_shot = true;
+    }
+
     "SEM_URIBL_UNKNOWN" {
         weight = 0.0;
         description = "Spameatingmonkey uribl: unknown result";