From 5057bcb52462523286ee5804ceead7e6e0d36cbd Mon Sep 17 00:00:00 2001 From: eric Date: Wed, 26 Sep 2018 16:28:34 +0000 Subject: [PATCH] treat NOTIMP as NO_DATA in response to MX query: fallback to hostname lookup instead of bouncing the mail. ok gilles@ --- usr.sbin/smtpd/dns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c index 86645fa6993..4d369e2479f 100644 --- a/usr.sbin/smtpd/dns.c +++ b/usr.sbin/smtpd/dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dns.c,v 1.87 2018/07/25 16:00:48 eric Exp $ */ +/* $OpenBSD: dns.c,v 1.88 2018/09/26 16:28:34 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -240,7 +240,8 @@ dns_dispatch_mx(struct asr_result *ar, void *arg) char buf[512]; size_t found; - if (ar->ar_h_errno && ar->ar_h_errno != NO_DATA) { + if (ar->ar_h_errno && ar->ar_h_errno != NO_DATA && + ar->ar_h_errno != NOTIMP) { m_create(s->p, IMSG_MTA_DNS_HOST_END, 0, 0, -1); m_add_id(s->p, s->reqid); -- 2.20.1