[exim-dev] [Bug 2499] SPF false fail, empty MX lookups over…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2499] SPF false fail, empty MX lookups overwrite previous good ones
https://bugs.exim.org/show_bug.cgi?id=2499

--- Comment #24 from Wolfgang Breyha <wbreyha@???> ---
it seems that
srr.herrno = h_errno,
doesn't work if the DNS lookup was provided from the cache since h_errno is not
valid anymore.

IMO srr.herrno needs to be derived back from the dns_lookup result like I tried
in a patch I made while you did it yourself as well...

+dns_rc = dns_lookup(dnsa, US domain, rr_type, NULL);
+switch (dns_rc)
+  {
+  case DNS_SUCCEED:
+    rr_rc = NETDB_SUCCESS;
+    break;
+  case DNS_AGAIN:
+    rr_rc = TRY_AGAIN;
+    break;
+  case DNS_NOMATCH:
+    rr_rc = HOST_NOT_FOUND;
+    break;
+  case DNS_FAIL:
+  default:
+    rr_rc = NO_RECOVERY;
+  } 
+
+srr.herrno = rr_rc,


--
You are receiving this mail because:
You are on the CC list for the bug.