From de6b6ab7983dcdceada2287b9edb4678af4a2b39 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 17 Jan 2016 00:03:02 +0000 Subject: [PATCH] Don't treat all but include/redirect errors as tempfail --- src/libserver/spf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libserver/spf.c b/src/libserver/spf.c index 959cfe7f1..c8f8facfe 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -703,7 +703,8 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg) break; } } - else { + else if (cb->cur_action == SPF_RESOLVE_INCLUDE || + cb->cur_action == SPF_RESOLVE_REDIRECT) { cb->addr->flags |= RSPAMD_SPF_FLAG_TEMPFAIL; msg_info_spf ( "<%s>: spf error for domain %s: cannot resolve DNS record for" -- 2.39.5