From d60ddac4f384773eb3c13d086f755540de557d77 Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Wed, 25 Jul 2018 16:00:49 +0000 Subject: 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@ --- usr.sbin/smtpd/smtpd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin/smtpd/smtpd.c') 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 @@ -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); -- cgit v1.2.3