summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2018-07-25 16:00:49 +0000
committerEric Faurot <eric@cvs.openbsd.org>2018-07-25 16:00:49 +0000
commitd60ddac4f384773eb3c13d086f755540de557d77 (patch)
tree4e41a5424e0c5517421f17c2b94c01ffa55bd02c /usr.sbin/smtpd/smtpd.c
parentd1c119fe8865e209f44f3dadcb4b5d19a32ac2bb (diff)
Implement a generic interface to forward resolver queries to the lka
process. Use it for the reverse lookups required by smtp and mta. Until now, DNS-related lookups were implemented using ad-hoc IMSGs between the lka and other processes. It turns out to be confusing and difficult to maintain/extend. So we want to replace this with a better set of IMSGs matching the standard resolver interface. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 1816cb4ebe4..77fee038857 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.301 2018/06/28 17:40:10 tim Exp $ */
+/* $OpenBSD: smtpd.c,v 1.302 2018/07/25 16:00:48 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1775,6 +1775,10 @@ imsg_to_str(int type)
CASE(IMSG_CTL_SMTP_SESSION);
+ CASE(IMSG_GETADDRINFO);
+ CASE(IMSG_GETADDRINFO_END);
+ CASE(IMSG_GETNAMEINFO);
+
CASE(IMSG_SETUP_KEY);
CASE(IMSG_SETUP_PEER);
CASE(IMSG_SETUP_DONE);
@@ -1829,7 +1833,6 @@ imsg_to_str(int type)
CASE(IMSG_MTA_DELIVERY_HOLD);
CASE(IMSG_MTA_DNS_HOST);
CASE(IMSG_MTA_DNS_HOST_END);
- CASE(IMSG_MTA_DNS_PTR);
CASE(IMSG_MTA_DNS_MX);
CASE(IMSG_MTA_DNS_MX_PREFERENCE);
CASE(IMSG_MTA_HOLDQ_RELEASE);
@@ -1852,7 +1855,6 @@ imsg_to_str(int type)
CASE(IMSG_SCHED_ENVELOPE_TRANSFER);
CASE(IMSG_SMTP_AUTHENTICATE);
- CASE(IMSG_SMTP_DNS_PTR);
CASE(IMSG_SMTP_MESSAGE_COMMIT);
CASE(IMSG_SMTP_MESSAGE_CREATE);
CASE(IMSG_SMTP_MESSAGE_ROLLBACK);