From owner-freebsd-stable@FreeBSD.ORG Sat Aug 10 16:20:26 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7A8202B5; Sat, 10 Aug 2013 16:20:26 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [IPv6:2607:f8b0:400c:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 22D9F2429; Sat, 10 Aug 2013 16:20:26 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id ox1so4637858veb.23 for ; Sat, 10 Aug 2013 09:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FYpKoXghmzNQYm2GMe6h8AhrBhoqpulWqt2ywo9rHzQ=; b=kWv7kU80H+lDjt0ADnMAX322E2jq9kfkQqDcJYMWQ5j0mKfEvpOHvkcTTfYVswRFDp p2LGxhx3D4grPVVuMxoZCKmh994v4HdKk+Y1RHUIEPqHY80n+Nhe1vFmmomIPO0Msu5s kr7aE15t9zPjwKvMAFnXZMRHcW0Qz7BYaHwLg8uHlS7XTGciGLJdgecuo0idvyU5r/ao IZhBQJ8iFNb9o6wFM5tcDkVLzTr6XvACPkgRq3cncP8edB/FpFMxHW5VtMIaxsMRnSHV YDn8GpXd7RWLCry5qwjRZ5qGoVX45WoA61QluP9rtL8PElCbLuBQxcF1645Y4YQ+wC06 ClnA== MIME-Version: 1.0 X-Received: by 10.58.118.8 with SMTP id ki8mr2937882veb.84.1376151625226; Sat, 10 Aug 2013 09:20:25 -0700 (PDT) Received: by 10.52.38.134 with HTTP; Sat, 10 Aug 2013 09:20:25 -0700 (PDT) In-Reply-To: <20130809172915.GC17837@minime.local> References: <20130807160528.GC13555@minime.local> <20130809172915.GC17837@minime.local> Date: Sat, 10 Aug 2013 20:20:25 +0400 Message-ID: Subject: Re: Sendmail-8.14.7 doesn't work with MS DNS in IPv4 network From: Pavel Timofeev To: Gregory Shapiro Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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: Sat, 10 Aug 2013 16:20:26 -0000 Gregory's new patch for sm_os_freebsd.h worked. 2013/8/9 Gregory Shapiro : > Can you put back the original sendmail/conf.c file and try this patch ins= tead to verify it works? If so, I can plan to commit it to HEAD and MFC to= the various branches (with re permission to the 9.2 branch). This would b= e a short term fix until the next sendmail release where we will revisit th= is section of code. > > --- contrib/sendmail/include/sm/os/sm_os_freebsd.h 2008-08-27 22:53:= 56.000000000 -0700 > +++ contrib/sendmail/include/sm/os/sm_os_freebsd.h 2013-08-09 10:21:= 12.000000000 -0700 > @@ -39,3 +39,7 @@ > #ifndef SM_CONF_MSG > # define SM_CONF_MSG 1 > #endif /* SM_CONF_MSG */ > + > +#ifndef SM_IPNODEBYNAME_FLAGS > +# define SM_IPNODEBYNAME_FLAGS AI_DEFAULT|AI_ALL > +#endif /* SM_IPNODEBYNAME_FLAGS */ > > > > On Fri, Aug 09, 2013 at 10:34:14AM +0400, Pavel Timofeev wrote: >> I agree with Mark Felder. >> >> 2013/8/8 Pavel Timofeev : >> > I tried to revert mentioned patch, i.e. applied this >> > >> > --- sendmail/conf.c.orig 2013-08-08 12:28:40.000000000 +0400 >> > +++ sendmail/conf.c 2013-08-08 12:31:17.000000000 +0400 >> > @@ -4294,12 +4294,7 @@ >> > #else /* (SOLARIS > 10000 && SOLARIS < 20400) || (defined(SOLARIS) && >> > SOLARIS < 204) || (defined(sony_news) && defined(__svr4)) */ >> > int nmaps; >> > # if NETINET6 >> > -# 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 =3D SM_IPNODEBYNAME_FLAGS; >> > + int flags =3D AI_DEFAULT|AI_ALL; >> > int err; >> > # endif /* NETINET6 */ >> > char *maptype[MAXMAPSTACK]; >> > >> > Sendmail started to work >> > >> > 2013/8/7 Gregory Shapiro : >> >>> 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 DN= S >> >>> 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 =3D 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 =3D 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 MT= A >> >> from using a mapped address over a legitimate IPv6 ad= dress >> >> 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(). >> >> >>