]> source.dussan.org Git - rspamd.git/commitdiff
Protect against bounce spam
authorFrederik Bosch <f.bosch@genkgo.nl>
Wed, 12 Oct 2022 08:44:12 +0000 (10:44 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Oct 2022 08:44:12 +0000 (10:44 +0200)
conf/composites.conf

index cd03d5fdd4fde944180b9a76c0da16f6265d1fd2..543d7c46a76ceea3f4703a2a54bb4a86d1b23051 100644 (file)
@@ -53,7 +53,17 @@ composites {
     expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA & ARC_NA";
     score = 1.0;
     policy = "remove_weight";
-    description = "Authenticating message via SPF/DKIM/DMARC/ARC not possible";
+    description = "Authenticating message via SPF/DKIM/DMARC/ARC not available";
+  }
+  AUTH_NA_OR_FAIL {
+    expression = "!AUTH_NA & (R_DKIM_NA | R_DKIM_TEMPFAIL | R_DKIM_PERMFAIL) & (R_SPF_NA | R_SPF_DNSFAIL) & DMARC_NA & (ARC_NA | ARC_DNSFAIL)";
+    score = 1.0;
+    policy = "remove_weight";
+    description = "Authenticating message via SPF/DKIM/DMARC/ARC not available or failed";
+  }
+  BOUNCE_NO_AUTH {
+    expression = "(AUTH_NA | AUTH_NA_OR_FAIL) & (BOUNCE | SUBJ_BOUNCE_WORDS)";
+    score = 1.0;
   }
   DKIM_MIXED {
     expression = "-R_DKIM_ALLOW & (R_DKIM_TEMPFAIL | R_DKIM_PERMFAIL | R_DKIM_REJECT)"