res_hnok() is too lenient wrt to acceptable domain name in mail addresses.
authoreric <eric@openbsd.org>
Fri, 23 Aug 2019 07:09:52 +0000 (07:09 +0000)
committereric <eric@openbsd.org>
Fri, 23 Aug 2019 07:09:52 +0000 (07:09 +0000)
commit0264247fffed19a9bcb21543be68d2d304a9a8b4
treeaf3a414e86082047845654bb9b53da6f51be2d49
parent670ba9afbcd5f0c76726b4693e30dd17c70c39f9
res_hnok() is too lenient wrt to acceptable domain name in mail addresses.
replace it with a valid_domainname() check that implements something closer
to RFC 5321, but still usable in real-life.

ok gilles@ millert@
usr.sbin/smtpd/smtpd.h
usr.sbin/smtpd/util.c