]> source.dussan.org Git - rspamd.git/commitdiff
Don't treat all but include/redirect errors as tempfail
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Jan 2016 00:03:02 +0000 (00:03 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Jan 2016 00:03:02 +0000 (00:03 +0000)
src/libserver/spf.c

index 959cfe7f1959e93c71e664af8ba78517b297db1a..c8f8facfee5d8ea285eaf20ba79329c5a65fdbfc 100644 (file)
@@ -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"