]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Dmarc: Fix bad policies detection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Sep 2019 15:11:13 +0000 (16:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Sep 2019 15:11:13 +0000 (16:11 +0100)
src/plugins/lua/dmarc.lua

index 726298edf1ab4aeb7b51fe7f471958c2477be595..b65d86ff831fc7ee6e0590cc19526b0b185c8dff 100644 (file)
@@ -664,7 +664,7 @@ local function dmarc_callback(task)
             end
           end
 
-          if not has_valid_policy then
+          if not has_valid_policy and not seen_invalid then
             policy_target.err = lookup_domain .. ':' .. ' no valid DMARC record'
             policy_target.symbol = dmarc_symbols['na']
           end