commit 86e884c: [Minor] Permfail should be propagated merely by specific cases

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Dec 16 17:56:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-12-16 17:15:36 +0000
URL: https://github.com/rspamd/rspamd/commit/86e884c7fb798427a21cdb124b553eb88a5ca866 (HEAD -> master)

[Minor] Permfail should be propagated merely by specific cases

---
 src/libserver/spf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index 14881697e..762f77a75 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -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) {


More information about the Commits mailing list