From owner-freebsd-hackers Thu Aug 29 12:54:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4378A37B400 for ; Thu, 29 Aug 2002 12:54:16 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF2A043E4A for ; Thu, 29 Aug 2002 12:54:15 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0180.cvx40-bradley.dialup.earthlink.net ([216.244.42.180] helo=mindspring.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17kVMq-0001ME-00; Thu, 29 Aug 2002 12:54:12 -0700 Message-ID: <3D6E7BAA.80DDA04E@mindspring.com> Date: Thu, 29 Aug 2002 12:53:14 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dan Langille Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: why does this sendmail connection take so long? References: <3D6DDDDF.7293.8DA46F18@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dan Langille wrote: > On 28 Aug 2002 at 16:43, Terry Lambert wrote: > > echo 'hi there' | mail -v dan@m20.example.org > > > > ? > > After issuing the above command, there is a 75s delay (see below for > delay location). All subsequent lines appear without delay. At the > end of this message, I've issued the commands by hand. No delays > occur. > > [dan@xeon:~] $ echo 'hi there' | mail -v dan@m20.example.org > dan@m20.example.org... Connecting to localhost.example.org. via > relay... > > This is either ident or the reverse DNS. Since the delay is ~75s, and that's on the order of 3 tries of 25s each, I would say it was a resolver issue, not an ident issue. Most likely, it's the reverse lookup of the 127.0.0.1. You need to make your local DNS server claim authority for the 127.in-addr.arpa. domain, and put the reverse mapping for the name "localhost" in there. The most common cause of a problem like this for a net connected system is a firewall that blocks DNS UDP packets; otherwise, it would just find that same value in the global DNS. I have patches for Sendmail 8.9.3 that fix this sort of thing up (I didn't want to bring up the link in a dial-on-demand device when processing local email), for all the good that will do you, since it's an ancient version tese days. ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message