Gregory Shapiro <gshap...@freebsd.org> wrote in <20130108180920.gj36...@rugsucker.smi.sendmail.com>:
gs> > How can I unstupid sendmail here? gs> gs> I don't think sendmail is being stupid here as it is doing what it has gs> been doing under 8.x and 9.1 (the code is the same). I think gs> something changed with the upgrade to 9.1. As far as tracking it gs> down, the sendmail code does: gs> gs> getipnodebyname("acme.spoerlein.net", AF_INET6, AI_DEFAULT|AI_ALL, gs> &err); gs> gs> This will only return an IPv4 mapped address if: gs> gs> 1. There are no IPv6 addresses configured on the interfaces. How are gs> your IPv6 addresses assigned? If auto-configured (DHCPv6, RTADV), is gs> it possible sendmail is being started before autoconfiguration has gs> completed? Restarting the MTA after boot and seeing if it still gets gs> the mapped address will say whether or not this is the cause. gs> gs> 2. The query for an AAAA record for acme.spoerlein.net failed. This gs> doesn't appear to be the case for dns based on your dig output gs> (assuming you ran that dig command on the same machine that is gs> exhibiting the problem). However, your nsswitch.conf lists hosts gs> before dns and there have been broken name resolution implementations gs> that, with 'hosts' listed first in nsswitch.conf have given back bad gs> info if the first hostname match didn't have the IPv6 address. You gs> could try switching the order in /etc/hosts to see if this helps. gs> (Note, the broken implementation was not FreeBSD.) Just curious, but is there any specific reason not to return an error when Family=inet6 and no AAAA RR? -- Hiroki
pgpKBFOU0X1Fy.pgp
Description: PGP signature