From owner-freebsd-stable@FreeBSD.ORG Wed Aug 7 18:22:29 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5B8EBB90; Wed, 7 Aug 2013 18:22:29 +0000 (UTC) (envelope-from lee@dilkie.com) Received: from data.snhdns.com (data.snhdns.com [208.76.82.136]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 250DC2E70; Wed, 7 Aug 2013 18:22:28 +0000 (UTC) Received: from [216.191.234.70] (port=56034 helo=[10.39.164.100]) by data.snhdns.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1V77df-00036g-QQ; Wed, 07 Aug 2013 13:35:11 -0400 Message-ID: <52028551.2040305@dilkie.com> Date: Wed, 07 Aug 2013 13:35:13 -0400 From: Lee Dilkie User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Gregory Shapiro Subject: Re: Sendmail-8.14.7 doesn't work with MS DNS in IPv4 network References: <20130807160528.GC13555@minime.local> In-Reply-To: <20130807160528.GC13555@minime.local> X-Enigmail-Version: 1.5.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - data.snhdns.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dilkie.com X-Get-Message-Sender-Via: data.snhdns.com: authenticated_id: lee@dilkie.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Pavel Timofeev , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 18:22:29 -0000 On 8/7/2013 12:05 PM, Gregory Shapiro wrote: >> I found a problem in new FreeBSD 9.2-{BETA2,RC1} which uses Sendmail-8.14.7. >> If you try to send email from FreeBSD 9.2 in IPv4 network with MS DNS >> you won't receive it. >> But in same time email passes from FreeBSD 9.1-RELEASE which uses >> Sendmail-8.14.5. > The recent release made the following change: > > --- sendmail/conf.c 25 Jan 2011 18:31:30 -0000 8.1168 > +++ sendmail/conf.c 5 Apr 2013 17:39:09 -0000 8.1182 > @@ -4726,7 +4726,12 @@ > #else /* (SOLARIS > 10000 && SOLARIS < 20400) || (defined(SOLARIS) && SOLARIS < 204) || (defined(sony_news) && defined(__svr4)) */ > int nmaps; > # if NETINET6 > - int flags = AI_DEFAULT|AI_ALL; > +# ifndef SM_IPNODEBYNAME_FLAGS > + /* For IPv4-mapped addresses, use: AI_DEFAULT|AI_ALL */ > +# define SM_IPNODEBYNAME_FLAGS AI_ADDRCONFIG > +# endif /* SM_IPNODEBYNAME_FLAGS */ > + > + int flags = SM_IPNODEBYNAME_FLAGS; > int err; > # endif /* NETINET6 */ > char *maptype[MAXMAPSTACK]; > > Which is described in this release note: > > Drop support for IPv4-mapped IPv6 addresses to prevent the MTA > from using a mapped address over a legitimate IPv6 address > and to enforce the proper semantics over the IPv6 > connection. Problem noted by Ulrich Sporlein. > > It looks like that SERVFAIL from Microsoft's DNS server is getting > in the way of that. I can look at adding this exception to > WorkAroundBrokenAAAA as a possibility for a future release. > > I'd also like to hear feedback on whether the above change (changing > getipnodebyname() flags from 'AI_DEFAULT | AI_ALL' to 'AI_ADDRCONFIG' went > too far and what the accepted norm is for getipnodebyname(). > getipnodebyname() is deprecated... getaddrinfo() should be used in this ipv6 world instead. -lee