From owner-freebsd-current@FreeBSD.ORG Sun May 8 00:24:40 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26945106566B for ; Sun, 8 May 2011 00:24:40 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 98E6D8FC15 for ; Sun, 8 May 2011 00:24:39 +0000 (UTC) Received: by bwz12 with SMTP id 12so4823097bwz.13 for ; Sat, 07 May 2011 17:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:x-authentication-warning:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=H5Ki1/THGKZoVPgMsw8teg2z0/LNVmNGwRpKrVKXDe0=; b=RS63/LPMwB4rlIMG4IhqPoXinFlFYomd2YGa6Yth3Ud/5gXwD+L0wqCkKnj+gvIByO dfuW9m29Aa5jkPLb6JFZpqqdWb6kzPd9GLytN2/Mc6LbfGF6lwLHBE2W0m6diKzFlod7 YCG8SYmlH1lDCuWYcZV4lp3QzK41do9Ut5Xtk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=QAi+GiqEo+cIisAmF3fkK+vnFIUzIgJhCGHue79CUTkWu4oAZAfVEY1FRrzfxSuxqX zcm+zVMxiCW/GrhBu8sxOxPIMZTalTIj1IY2qJiJQ2Pzir6GnShfpDswpEN+0HFbUT6Q gcaSCwTFfKYLJrifoIdxVfA/+ZvS7Z/CKklq4= Received: by 10.204.19.5 with SMTP id y5mr536169bka.194.1304814278449; Sat, 07 May 2011 17:24:38 -0700 (PDT) Received: from procyon.xvoid.org ([213.132.76.142]) by mx.google.com with ESMTPS id 16sm2802542bkm.18.2011.05.07.17.24.36 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 07 May 2011 17:24:37 -0700 (PDT) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.4/8.14.4) with ESMTP id p480OYGE021060 for ; Sun, 8 May 2011 04:24:34 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.4/8.14.4/Submit) id p480OYw1021059 for freebsd-current@freebsd.org; Sun, 8 May 2011 04:24:34 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Sun, 8 May 2011 04:24:34 +0400 From: Yuri Pankov To: freebsd-current@freebsd.org Message-ID: <20110508002434.GA18573@procyon.xvoid.org> References: <20110507074547.GE1222@procyon.xvoid.org> <20110507101112.GA2734@DataIX.net> <20110507101637.GF1222@procyon.xvoid.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110507101637.GF1222@procyon.xvoid.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: sendmail tries to resolve IPv6:::1 specified in submit.mc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 00:24:40 -0000 On Sat, May 07, 2011 at 02:16:37PM +0400, Yuri Pankov wrote: > On Sat, May 07, 2011 at 06:11:12AM -0400, Jason Hellenthal wrote: > > > > Yuri, > > > > > > On Sat, May 07, 2011 at 11:45:47AM +0400, Yuri Pankov wrote: > > >Hi, > > > > > >I'm getting weird problem on recent -CURRENT - sendmail is trying to > > >resolve 'IPv6:::1' specified in /etc/mail/`hostname`.submit.mc: > > > > > >FEATURE(`msp', `[IPv6:::1]')dnl > > > > > >tcpdump: > > >3802+ A? ipv6:::1.xvoid.org. (36) > > >3802 NXDomain* 0/1/0 (100) > > >3803+ A? ipv6:::1.lab.xvoid.org. (40) > > >3803 NXDomain* 0/1/0 (108) > > >3804+ A? ipv6:::1. (26) > > >3804 ServFail 0/0/0 (26) > > >3804+ A? ipv6:::1. (26) > > >3804 ServFail 0/0/0 (26) > > > > > >IPv6 is configured and is working except for this problem. Sendmail > > >on 8.2-RELEASE is working fine with the same submit.mc contents. > > > > > >Any hints? > > > > > > > Yuri by default this is set to [127.0.0.1] as denoted by: > > http://svn.freebsd.org/base/head/etc/sendmail/freebsd.submit.mc > > > > I believe it has been this way for a very long time. If for some reason > > that you changed the value your self and you would like to revert back to > > defaults you can remove `hostname`.mc & `hostname`.submit.mc and re-run > > make(1) in the /etc/mail directory to give you a default config. > > > > The comment in that file reads: > > dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] > > Err, sure, but that's not what I'm asking. [127.0.0.1] works on both 8.2 > and -CURRENT, however [IPv6:::1] doesn't work for me on -CURRENT, while > working in 8.2. > > I can't find any related changes and checked almost everything I could > think of in my configuration, so I'm asking for hints *why* sendmail > doesn't accept [IPv6:::1] as correct address and tries to resolve it. Sorted it out, this host runs sendmail as outbound only, and default sendmail_submit_flags makes it bind only to 127.0.0.1, so adding -ODaemonPortOptions=Family=inet6,Addr=::1 there solved the problem (it wasn't obvious from the sendmail's behaviour). Anyway, it doesn't belong to this list, sorry for the noise! Yuri