sendmail vs ipv6 broken after upgrade to 9.1

Hiroki Sato hrs at FreeBSD.org
Tue Jan 8 22:34:29 UTC 2013


Gregory Shapiro <gshapiro at freebsd.org> wrote
  in <20130108180920.GJ36633 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130109/83d608ca/attachment.sig>


More information about the freebsd-stable mailing list