-/* $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 <pyr@openbsd.org>
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");