From owner-freebsd-questions Fri Jan 3 17:44: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8C6F37B401; Fri, 3 Jan 2003 17:44:01 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A29B43EA9; Fri, 3 Jan 2003 17:44:01 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0009.cvx21-bradley.dialup.earthlink.net ([209.179.192.9] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18UdLu-00023J-00; Fri, 03 Jan 2003 17:43:55 -0800 Message-ID: <3E163C0A.C0CF8146@mindspring.com> Date: Fri, 03 Jan 2003 17:42:34 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Gary W. Swearingen" Cc: freebsd-current@freebsd.org, Valentin Nechayev , freebsd-questions@freebsd.org Subject: Re: [resolution] Re: sendmail (Re: 5.0-RC2 informal PR: 90 sec sendmail delay) References: <3E1352BC.4043921B@mindspring.com> <20030101145232.A391@zardoc.esmtp.org> <3E13D095.FC52B758@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a403467887c5995298cf20dc0d3772d0fc350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Gary W. Swearingen" wrote: > Thanks. I tried that and some other things (eg service.switch). Even > read the book and help files some more. Terry's suggestion regarding > "expensive" seemed like the opposite of what I needed (I was trying to > keep the msg out of the queues) and I had no luck trying to disable some > DNS which he hinted at. > > I got my first good clue after adding level 15 logging to see an 80-sec > delay between MUA-launched sendmail and the MTA daemon. I then used > level-99 logging to find The book is pretty useless. The reason the fix you are using works is because you have an IPv6 connection by default, and by explicitly specifying an IPv4 address, IPv4 is used. The issue here is the .in-addr.arpa. delegation for localhost is considered to be local. When the getpeername() happens, it gets an IPv6 address instead of an IPv4, and the the gethostbyaddr() hangs looking for "::1.in-addr.arpa.", but has no problem finding "1.0.0.127.in-addr.arpa.". You can "fix" this by disabling the DNS cross-check in the file sendmail.cf, and by getting rid of the peer name lookup in the loopback case. What you did with the IPv4 just took advanatage of the fact that the in-addr.arpa. IPv4 delegations existed, when the IPv6 loopback address ones did not. > Is there a quick way to disable IPv6? While I figure that out or > rebuild my kernel, I got a quick fix by changing, in my "submit.mc", > this > FEATURE(`msp') > to this > FEATURE(`msp',`[127.0.0.1]') This isn't the correct fix. The correct fix is to add an IPv6 address and in-addr.arap. delegation for the loopback in your local DNS. As far as the HoldExpensive I recommended, the way you stated the problem seemed to indicate that it was a failure to connect, not a failure to validate a connection was going through. In general, ou want to queue up any mail that can bring up a link, if your link is transiently connected, and then control the link with a seperate queue interval. The other DNS statements I made were to ensure that the interface did not end up bouncing up when sendmail was started, for local mail delivery, or for remote mail delivery, outside the administratively controlled queueing intervals (which could be on the order of seconds, if you wanted). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message