commit e16042d: [Conf] Register new Spamhaus codes

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Oct 11 08:14:09 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-11 09:13:05 +0100
URL: https://github.com/rspamd/rspamd/commit/e16042d0d4db18d29724f596e735dde321675ed5 (HEAD -> master)

[Conf] Register new Spamhaus codes
Issue: #3074
Closes: #3074

---
 conf/modules.d/rbl.conf        |  5 +++++
 conf/scores.d/rbl_group.conf   | 20 ++++++++++++++++++++
 conf/scores.d/surbl_group.conf | 10 ++++++++++
 3 files changed, 35 insertions(+)

diff --git a/conf/modules.d/rbl.conf b/conf/modules.d/rbl.conf
index caaee4b97..56f92b429 100644
--- a/conf/modules.d/rbl.conf
+++ b/conf/modules.d/rbl.conf
@@ -44,6 +44,8 @@ rbl {
             "127.0.0.6", "127.0.0.7"];
         SPAMHAUS_PBL = ["127.0.0.10", "127.0.0.11"];
         SPAMHAUS_DROP = "127.0.0.9";
+        SPAMHAUS_BLOCKED_OPENRESOLVER = "127.255.255.254";
+        SPAMHAUS_BLOCKED= "127.255.255.255";
       }
     }
 
@@ -263,6 +265,9 @@ rbl {
         DBL_ABUSE_BOTNET = "127.0.1.106";
         # error - IP queries prohibited!
         DBL_PROHIBIT = "127.0.1.255";
+        # issue #3074
+        DBL_BLOCKED_OPENRESOLVER = "127.255.255.254";
+        DBL_BLOCKED = "127.255.255.255";
       }
     }
 
diff --git a/conf/scores.d/rbl_group.conf b/conf/scores.d/rbl_group.conf
index c86dba867..690d0ee17 100644
--- a/conf/scores.d/rbl_group.conf
+++ b/conf/scores.d/rbl_group.conf
@@ -116,6 +116,16 @@ symbols = {
         description = "From address is listed in ZEN DROP BL";
         groups = ["spamhaus"];
     }
+    "RBL_SPAMHAUS_BLOCKED_OPENRESOLVER" {
+      weight = 0.0;
+      description = "You are querying Spamhaus from an open resolver, please see https://www.spamhaus.org/returnc/pub/";
+      groups = ["spamhaus"];
+    }
+    "RBL_SPAMHAUS_BLOCKED" {
+      weight = 0.0;
+      description = "You are exceeding the query limit, please see https://www.spamhaus.org/returnc/vol/";
+      groups = ["spamhaus"];
+    }
     "RECEIVED_SPAMHAUS_SBL" {
         weight = 1.0;
         description = "Received address is listed in ZEN SBL";
@@ -146,6 +156,16 @@ symbols = {
         groups = ["spamhaus"];
         one_shot = true;
     }
+    "RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER" {
+      weight = 0.0;
+      description = "You are querying Spamhaus from an open resolver, please see https://www.spamhaus.org/returnc/pub/";
+      groups = ["spamhaus"];
+    }
+    "RECEIVED_SPAMHAUS_BLOCKED" {
+      weight = 0.0;
+      description = "You are exceeding the query limit, please see https://www.spamhaus.org/returnc/vol/";
+      groups = ["spamhaus"];
+    }
 
     "RBL_SENDERSCORE" {
         weight = 2.0;
diff --git a/conf/scores.d/surbl_group.conf b/conf/scores.d/surbl_group.conf
index 93befa085..b4e5b6bbf 100644
--- a/conf/scores.d/surbl_group.conf
+++ b/conf/scores.d/surbl_group.conf
@@ -150,6 +150,16 @@ symbols = {
         description = "DBL uribl IP queries prohibited!";
         groups = ["spamhaus"];
     }
+    "DBL_BLOCKED_OPENRESOLVER" {
+      weight = 0.0;
+      description = "You are querying Spamhaus from an open resolver, please see https://www.spamhaus.org/returnc/pub/";
+      groups = ["spamhaus"];
+    }
+    "DBL_BLOCKED" {
+      weight = 0.0;
+      description = "You are exceeding the query limit, please see https://www.spamhaus.org/returnc/vol/";
+      groups = ["spamhaus"];
+    }
     "URIBL_MULTI" {
         weight = 0.0;
         description = "uribl.com: unrecognised result";


More information about the Commits mailing list