diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-16 17:15:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-16 17:15:36 +0000 |
commit | 86e884c7fb798427a21cdb124b553eb88a5ca866 (patch) | |
tree | 7873aa772aab8d12ba66740e823f05c8d189b496 /src/libserver/spf.c | |
parent | f20f726a864cfd6a72258d5e965c2f6ef11b8dcd (diff) | |
download | rspamd-86e884c7fb798427a21cdb124b553eb88a5ca866.tar.gz rspamd-86e884c7fb798427a21cdb124b553eb88a5ca866.zip |
[Minor] Permfail should be propagated merely by specific cases
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r-- | src/libserver/spf.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |