From 03b832fe448f9da8bd16a190901d7b30c86e3cc1 Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Wed, 10 Sep 2014 08:23:46 -0400 Subject: Fix SPF mx lookup failures. When A/AAAA records are not included in the MX response, explicitly query both A and AAAA records, instead of returning A records if they were found; also query AAAA before A. MX lookup for an SPF check -- new RFC1035_MX_QUERYALL flag to force both A and AAAA queries. --- rfc1035/spf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rfc1035/spf.c') diff --git a/rfc1035/spf.c b/rfc1035/spf.c index 3839fde..efda0d9 100644 --- a/rfc1035/spf.c +++ b/rfc1035/spf.c @@ -856,7 +856,7 @@ static char mechanism(const char *name, } rc=rfc1035_mxlist_create_x(&info->res, - domain_spec, 0, + domain_spec, RFC1035_MX_QUERYALL, &mxlist); free(domain_spec); if (rc) -- cgit v1.2.3