From: Vsevolod Stakhov Date: Sun, 17 Jan 2016 00:03:02 +0000 (+0000) Subject: Don't treat all but include/redirect errors as tempfail X-Git-Tag: 1.1.0~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de6b6ab7983dcdceada2287b9edb4678af4a2b39;p=rspamd.git Don't treat all but include/redirect errors as tempfail --- 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"