aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-22 11:38:33 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-08-22 11:38:33 +0200
commit9616bee5ff2d76206e55b81852d0e2ae7aa1e3db (patch)
tree23ecfe8b944960a5008fd495f7ee6b7fbf3ca9fb
parente158dc398c4b02b3fe5422a91634f867048076b9 (diff)
downloadrspamd-9616bee5ff2d76206e55b81852d0e2ae7aa1e3db.tar.gz
rspamd-9616bee5ff2d76206e55b81852d0e2ae7aa1e3db.zip
[Minor] Composite: Don't penalise for SPF/DKIM failure when DMARC passed
-rw-r--r--conf/composites.conf3
-rw-r--r--conf/metrics.conf4
2 files changed, 7 insertions, 0 deletions
diff --git a/conf/composites.conf b/conf/composites.conf
index 5ed69df39..d6d845fe9 100644
--- a/conf/composites.conf
+++ b/conf/composites.conf
@@ -26,6 +26,9 @@ composite "FORGED_SENDER_FORWARDING" {
composite "SPF_FAIL_FORWARDING" {
expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)";
}
+composite "DMARC_POLICY_ALLOW_WITH_FAILURES" {
+ expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)";
+}
composite "FORGED_RECIPIENTS_FORWARDING" {
expression = "FORGED_RECIPIENTS & g:forwarding";
}
diff --git a/conf/metrics.conf b/conf/metrics.conf
index 781034048..44600b5bc 100644
--- a/conf/metrics.conf
+++ b/conf/metrics.conf
@@ -997,6 +997,10 @@ metric {
weight = -0.5;
description = "DMARC permit policy";
}
+ symbol "DMARC_POLICY_ALLOW_WITH_FAILURES" {
+ weight = -0.5;
+ description = "DMARC permit policy with DKIM/SPF failure";
+ }
symbol "DMARC_POLICY_REJECT" {
weight = 2.0;
description = "DMARC reject policy";