diff options
-rw-r--r-- | src/libserver/spf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c index c856d3645..052e024e0 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -300,12 +300,14 @@ rspamd_spf_process_reference (struct spf_resolved *target, } else if (cur->flags & RSPAMD_SPF_FLAG_REFRENCE) { /* Process reference */ - rspamd_spf_process_reference (target, cur, rec, FALSE); - if (cur->flags & RSPAMD_SPF_FLAG_REDIRECT) { /* Stop on redirected domain */ + rspamd_spf_process_reference (target, cur, rec, TRUE); break; } + else { + rspamd_spf_process_reference (target, cur, rec, FALSE); + } } else { if ((cur->flags & RSPAMD_SPF_FLAG_ANY) && !top) { |