From owner-freebsd-hackers Thu Aug 29 10:57:52 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 DEDEA37B408 for ; Thu, 29 Aug 2002 10:57:36 -0700 (PDT) Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C7C943E3B for ; Thu, 29 Aug 2002 10:57:35 -0700 (PDT) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.6.Beta0/8.12.6.Beta1) with ESMTP id g7THvY6X097259 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 29 Aug 2002 10:57:34 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.6.Beta0/8.12.6.Beta1/Submit) id g7THvYOI097256; Thu, 29 Aug 2002 10:57:34 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15726.24717.960548.333189@horsey.gshapiro.net> Date: Thu, 29 Aug 2002 10:57:33 -0700 From: Gregory Neil Shapiro To: "Dan Langille" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: why does this sendmail connection take so long? In-Reply-To: <3D6E243B.1515.8EB744E7@localhost> References: <3D6DDDDF.7293.8DA46F18@localhost> <3D6E243B.1515.8EB744E7@localhost> X-Mailer: VM 7.03 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid 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 I see two related problems with your DNS setup: dan> dns_getcanonname: trying m20.example.org. (A) dan> ;; res_querydomain(m20.example.org, , 1, 1) dan> ;; res_query(m20.example.org., 1, 1) dan> ;; res_mkquery(0, m20.example.org., 1, 1) dan> ;; res_send() dan> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26787 dan> ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 dan> ;; m20.example.org, type = A, class = IN dan> ;; Querying server (# 1) address = 127.0.0.1 dan> ;; got answer: dan> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26787 dan> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: dan> 1 dan> ;; m20.example.org, type = A, class = IN dan> m20.example.org. 1M IN A 216.187.106.227 dan> example.org. 1M IN NS xeon.example.org.org. ^^^^^^^^^^^^^^^^^^^^^ dan> xeon.example.org.org. 5S IN A 127.0.0.1 ^^^^^^^^^^^^^^^^^^^^^ example.org's DNS zone has a mistake if it has an NS record pointing to a bogus hostname like that (and what's worse the bogus hostname resolves). dan> dns_getcanonname: trying localhost.example.org (AAAA) dan> ;; res_querydomain(localhost, example.org, 1, 28) ... dan> dan@m20.example.org... Connecting to xeon.example.org. via relay... localhost.example.org appears to map to xeon.example.org, perhaps via /etc/hosts? My first suggestion would be to fix your DNS zone as mentioned above. Then, try the test again with more debugging: echo 'hi there' | /usr/sbin/sendmail -v -d8.8,16.10,61.11 dan@m20.example.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message