From owner-freebsd-stable@FreeBSD.ORG Tue Jan 8 18:40:58 2013 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9C12E619 for ; Tue, 8 Jan 2013 18:40:58 +0000 (UTC) (envelope-from uqs@freebsd.org) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2166E300 for ; Tue, 8 Jan 2013 18:40:57 +0000 (UTC) Received: from localhost (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by acme.spoerlein.net (8.14.6/8.14.6) with ESMTP id r08IepdF027114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 8 Jan 2013 19:40:52 +0100 (CET) (envelope-from uqs@freebsd.org) Date: Tue, 8 Jan 2013 19:40:51 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Michiel Boland , stable@FreeBSD.org Subject: Re: sendmail vs ipv6 broken after upgrade to 9.1 Message-ID: <20130108184051.GI35868@acme.spoerlein.net> Mail-Followup-To: Michiel Boland , stable@FreeBSD.org References: <20130108151837.GF35868@acme.spoerlein.net> <50EC5922.5030600@boland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <50EC5922.5030600@boland.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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: Tue, 08 Jan 2013 18:40:58 -0000 On Tue, 2013-01-08 at 18:36:34 +0100, Michiel Boland wrote: > On 01/08/2013 16:18, Ulrich Spörlein wrote: > > Hey, > > > > I upgraded a server running 8.x to 9.1 over the weekend and sendmail no > > longer wants to bind the AF_INET6 sockets. > > > > So while this still works: > > > > DAEMON_OPTIONS(`Port=smtp, Addr=127.0.0.1, Name=MSA, M=Eu, InputMailFilters=dkim') > > DAEMON_OPTIONS(`Port=smtp, Addr=::1, Name=MSA, Family=inet6, M=Eu, InputMailFilters=dkim') > > > > this is broken: > > > > DAEMON_OPTIONS(`Port=submission, Addr=acme.spoerlein.net, Name=MSA, M=E, InputMailFilters=dkim') > > DAEMON_OPTIONS(`Port=submission, Addr=acme.spoerlein.net, Name=MSA, Family=inet6, M=E, InputMailFilters=dkim') > > > > which makes me believe this has to do with name resolution... > > > > The actual reported errors are: > > > > Jan 8 16:05:03 acme sm-msp-queue[98057]: starting daemon (8.14.6): queueing@00:30:00 > > Jan 8 16:05:03 acme sm-mta[98054]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MSA: cannot bind: Can't assign requested address > > What's the output of the 'ip6addrctl' command on your machine? > > Cheers > Michiel root@acme: ~# ip6addrctl Prefix Prec Label Use ::ffff:0.0.0.0/96 50 0 0 ::1/128 40 1 0 ::/0 30 2 72866 2002::/16 20 3 4 ::/96 10 4 0 Gah! I remember having to set ip6addrctl_policy="ipv6_prefer" on another system that I upgraded to 9.x a long time ago. After setting this, it now looks like this: root@acme: ~# ip6addrctl Prefix Prec Label Use ::1/128 50 0 0 ::/0 40 1 0 2002::/16 30 2 0 ::/96 20 3 0 ::ffff:0.0.0.0/96 10 4 0 And even sendmail is happily finding the sockets to bind to. Thanks for the hint! The bigger question now is, why don't we want to have a working IPv6 out of the box? Regards, Uli