Implement a generic interface to forward resolver queries to the lka
authoreric <eric@openbsd.org>
Wed, 25 Jul 2018 16:00:48 +0000 (16:00 +0000)
committereric <eric@openbsd.org>
Wed, 25 Jul 2018 16:00:48 +0000 (16:00 +0000)
commit01eba458dac00a9e82bce5f6846b8cef5a619ca2
treecefc212adfea235bf5092c07c99eda372a049928
parenta51f45e3a51c3ce8aab46b1294b2980287a7a224
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/dns.c
usr.sbin/smtpd/lka.c
usr.sbin/smtpd/mta.c
usr.sbin/smtpd/mta_session.c
usr.sbin/smtpd/pony.c
usr.sbin/smtpd/resolver.c [new file with mode: 0644]
usr.sbin/smtpd/smtp.c
usr.sbin/smtpd/smtp_session.c
usr.sbin/smtpd/smtpd.c
usr.sbin/smtpd/smtpd.h
usr.sbin/smtpd/smtpd/Makefile