Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

deliver_remote: propagate back DNS errors

  • Loading branch information...
commit 5317696b186a26233198ee361ea5f0b64441d9c7 1 parent af31dad
@corecode authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  net.c
View
3  net.c
@@ -516,7 +516,8 @@ deliver_remote(struct qitem *it)
error = dns_get_mx_list(host, port, &hosts, smarthost);
if (error) {
- syslog(LOG_NOTICE, "remote delivery %s: DNS failure (%s)",
+ snprintf(errmsg, sizeof(errmsg), "DNS lookup failure: host %s not found", host);
+ syslog(LOG_NOTICE, "remote delivery %s: DNS lookup failure: host %s not found",
error < 0 ? "failed" : "deferred",
host);
return (error);
Please sign in to comment.
Something went wrong with that request. Please try again.