From: eric Date: Mon, 19 Aug 2019 15:42:24 +0000 (+0000) Subject: use a specific and more relevant status message for failed smarthost X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=42d9b5d3760244b1a77ab2b9be2dea3a8e96fb1d;p=openbsd use a specific and more relevant status message for failed smarthost resolution. ok gilles@ --- diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index 76e0be8e86c..c593bdc3f3b 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.228 2019/06/14 19:55:25 eric Exp $ */ +/* $OpenBSD: mta.c,v 1.229 2019/08/19 15:42:24 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -1005,7 +1005,10 @@ mta_on_mx(void *tag, void *arg, void *data) break; case DNS_ENOTFOUND: relay->fail = IMSG_MTA_DELIVERY_TEMPFAIL; - relay->failstr = "No MX found for domain"; + if (relay->domain->as_host) + relay->failstr = "Host not found"; + else + relay->failstr = "No MX found for domain"; break; default: fatalx("bad DNS lookup error code");