From owner-freebsd-hackers Thu Aug 22 22:34:24 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 6CCE637B400 for ; Thu, 22 Aug 2002 22:34:22 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0834B43E72 for ; Thu, 22 Aug 2002 22:34:22 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0311.cvx21-bradley.dialup.earthlink.net ([209.179.193.56] helo=mindspring.com) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17i75I-0001sY-00; Thu, 22 Aug 2002 22:34:13 -0700 Message-ID: <3D65C859.7E4E45F5@mindspring.com> Date: Thu, 22 Aug 2002 22:30:01 -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: <3D657BF0.2272.6CE1CF5A@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 22 Aug 2002 at 17:35, Terry Lambert wrote: > > Dan Langille wrote: > > > I'd normally attribute this problem to DNS, but I can't track down > > > what DNS problem is occuring. Note the lag between the first event > > > and the next. Any suggestions? > > > > Sendmail attempts to do a "getpeername()" and an identd lookup > > of the sending process for logging purposes. You can turn this > > off. For a persistant connection, the second thing that gets > > sent down it avoids this check. > > Do you know what the switch is for turning that off? It depends on the version of sendmail. If it's not 8.12.5, you will need a local hack; for that, you should look for where the variable "RealHostName" is set in the C sources in sendmail/sendmail/daemon.c. If it's newer, then there should be an option for your m4 file in sendmail/cf/README (NOT in the book!). You might also want to play with confTO_IDENT (the 5 second ident timer) and confTO_RESOLVER_RETRY (the resolver timeout). If you need the local hack, it's pretty rivial, I can walk you through it. Alternately, you could get the remote side to answer the phone. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message