summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2018-09-26 16:28:35 +0000
committerEric Faurot <eric@cvs.openbsd.org>2018-09-26 16:28:35 +0000
commit0c3083ee55ff933c9b3412bbf326d176b259ba7c (patch)
treef22b54ecb2cbc90ce7027b8bc1d169b524b9ced9 /usr.sbin/smtpd
parent4868aaa816cf4bf190f353f3f0c0f71221768b37 (diff)
treat NOTIMP as NO_DATA in response to MX query: fallback to hostname lookup
instead of bouncing the mail. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/dns.c5
1 files 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 <gilles@poolp.org>
@@ -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);