IPv6 reverse lookup broken (possibly by glibc-2.30.patch)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sendmail (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 20.04 with glibc-2.31, sendmail fails to verify IPv6 client addresses (reverse-
May 20 16:42:50 mx sm-mta[161617]: ruleset=
No such problem on Ubuntu 18.04 (glibc-2.27).
It seems the patch "glibc-2.30.patch" fixes the FTBS problem, but does not provide an alternate method for IPv6 reverse lookups.
I checked with tcpdump and the forward lookups are always for "A" records instead of "AAAA".
There is already some #ifdef in conf.c, function sm_getipnodebyn
If I add
#define HAS_GETHOSTBYNAME2 1
before that, reverse lookups for IPv6 do work again as expected.
Hi,
please find attached patch for debian/ configure. ac.
It removes the test for getaddrinfo() (not used in sendmail), and adds a test for gethostbyname2(), adding -DHAS_GETHOSTBY NNAME2= 1 to sm_envdef when found.
Regards
Matthias Ferdinand