]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
add negative weight to DNSWL entries
authorheraklit256 <37872459+heraklit256@users.noreply.github.com#>
Tue, 7 Aug 2018 14:34:30 +0000 (16:34 +0200)
committerheraklit256 <37872459+heraklit256@users.noreply.github.com#>
Tue, 7 Aug 2018 14:34:30 +0000 (16:34 +0200)
However, a message must be correctly DKIM signed to get some more
negative weight in case an received IP is listed with medium or
high trust at DNSWL.

This supersedes a first patch without the DKIM condition.

conf/composites.conf
conf/scores.d/rbl_group.conf

index a07b7020fa4fbd89aaa26eb575bb97fbde0f7779..9d204344ce298031091d75d4ccf3cd57e3eb9e6a 100644 (file)
@@ -83,9 +83,18 @@ composites {
     }
     RCVD_UNAUTH_PBL {
         expression = "RECEIVED_PBL & -RCVD_VIA_SMTP_AUTH";
-        description = "Relayed through ZEN PBL IP without sufficient authentication";
+        description = "Relayed through ZEN PBL IP without sufficient authentication (possible indicating an open relay)";
         score = 2.0;
-        policy = "leave";
+    }
+    RCVD_DKIM_DNSWL_MED {
+        expression = "R_DKIM_ALLOW & RCVD_IN_DNSWL_MED";
+        description = "Sufficiently DKIM signed and received from IP with medium trust at DNSWL";
+        score = -1.5;
+    }
+    RCVD_DKIM_DNSWL_HI {
+        expression = "R_DKIM_ALLOW & RCVD_IN_DNSWL_HI";
+        description = "Sufficiently DKIM signed and received from IP with high trust at DNSWL";
+        score = -3.5;
     }
 
     .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
index 6c48cf3bb525bd22ad6fc63763bb904c3873ade7..2b9d9483c41c7f6953e8cefe8793ddcf51950d4c 100644 (file)
@@ -29,15 +29,15 @@ symbols = {
         description = "Sender listed at https://www.dnswl.org, no trust";
     }
     "RCVD_IN_DNSWL_LOW" {
-        weight = 0.0;
+        weight = -0.5;
         description = "Sender listed at https://www.dnswl.org, low trust";
     }
     "RCVD_IN_DNSWL_MED" {
-        weight = 0.0;
+        weight = -0.5;
         description = "Sender listed at https://www.dnswl.org, medium trust";
     }
     "RCVD_IN_DNSWL_HI" {
-        weight = 0.0;
+        weight = -0.5;
         description = "Sender listed at https://www.dnswl.org, high trust";
     }