]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Permfail should be propagated merely by specific cases
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 17:15:36 +0000 (17:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 17:15:36 +0000 (17:15 +0000)
src/libserver/spf.c

index 14881697e025b001102f609c7a2c8353f13c0828..762f77a75a74414ce11a60a6dc03fa44721ab5c0 100644 (file)
@@ -438,7 +438,9 @@ rspamd_spf_process_reference (struct spf_resolved *target,
                        continue;
                }
                if (cur->flags & RSPAMD_SPF_FLAG_PERMFAIL) {
-                       target->flags |= RSPAMD_SPF_RESOLVED_PERM_FAILED;
+                       if (cur->flags & RSPAMD_SPF_FLAG_REDIRECT) {
+                               target->flags |= RSPAMD_SPF_RESOLVED_PERM_FAILED;
+                       }
                        continue;
                }
                if (cur->flags & RSPAMD_SPF_FLAG_NA) {