From owner-freebsd-hackers Thu Aug 29 10:42:16 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 774E537B400; Thu, 29 Aug 2002 10:42:06 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 814C343E6A; Thu, 29 Aug 2002 10:42:05 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 846163F28; Thu, 29 Aug 2002 13:42:03 -0400 (EDT) From: "Dan Langille" To: Gregory Neil Shapiro Date: Thu, 29 Aug 2002 13:40:11 -0400 MIME-Version: 1.0 Subject: Re: why does this sendmail connection take so long? Cc: freebsd-hackers@FreeBSD.ORG Message-ID: <3D6E243B.1515.8EB744E7@localhost> In-reply-to: <15726.23195.612802.320858@horsey.gshapiro.net> References: <3D6DDDDF.7293.8DA46F18@localhost> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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 On 29 Aug 2002 at 10:32, Gregory Neil Shapiro wrote: > dan> [dan@xeon:~] $ echo 'hi there' | mail -v dan@m20.example.org > dan> dan@m20.example.org... Connecting to localhost.example.org. via > dan> relay... > > dan> > > dan> 220 xeon.example.org ESMTP Sendmail 8.12.5/8.12.5; Thu, 29 Aug 2002 > dan> 08:32:14 -0400 (EDT) > > That's either IDENT or DNS. > > 1. Does the same delay happen if you do this: > > telnet localhost.example.org 25 No. > 2. Does the delay happen on every message? Yes (qualifed by: every test I've run it's been like that). > If the answers to question 1 is no and question 2 is yes, try: > > echo 'hi there' | /usr/sbin/sendmail -v -d8.8 dan@m20.example.org [The real domain is unixathome.org, not example.org; I've done a search+replace on the log below] See "***delay occurs here..." below. [dan@xeon:~] $ echo 'hi there' | /usr/sbin/sendmail -v -d8.8 dan@m20.example.org dns_getcanonname(m20.example.org, trymx=1) dns_getcanonname: trying m20.example.org. (AAAA) ;; res_querydomain(m20.example.org, , 1, 28) ;; res_query(m20.example.org., 1, 28) ;; res_mkquery(0, m20.example.org., 1, 28) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26786 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; m20.example.org, type = AAAA, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26786 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; m20.example.org, type = AAAA, class = IN example.org. 1D IN SOA ns1.example.org. soa.example.com. ( 2002082901 ; serial 3H ; refresh 30M ; retry 4w2d ; expiry 1D ) ; minimum ;; rcode = 0, ancount=0 NO: errno=19, h_errno=4 dns_getcanonname: trying m20.example.org. (A) ;; res_querydomain(m20.example.org, , 1, 1) ;; res_query(m20.example.org., 1, 1) ;; res_mkquery(0, m20.example.org., 1, 1) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26787 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; m20.example.org, type = A, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26787 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; m20.example.org, type = A, class = IN m20.example.org. 1M IN A 216.187.106.227 example.org. 1M IN NS xeon.example.org.org. xeon.example.org.org. 5S IN A 127.0.0.1 YES dns_getcanonname: m20.example.org getmxrr([localhost], droplocalhost=1) dns_getcanonname(localhost, trymx=0) dns_getcanonname: trying localhost.example.org (AAAA) ;; res_querydomain(localhost, example.org, 1, 28) ;; res_query(localhost.example.org, 1, 28) ;; res_mkquery(0, localhost.example.org, 1, 28) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26788 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; localhost.example.org, type = AAAA, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26788 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; localhost.example.org, type = AAAA, class = IN example.org. 1D IN SOA ns1.example.org. soa.example.com. ( 2002082901 ; serial 3H ; refresh 30M ; retry 4w2d ; expiry 1D ) ; minimum ;; rcode = 3, ancount=0 NO: errno=19, h_errno=1 dan@m20.example.org... Connecting to xeon.example.org. via relay... ;; res_querydomain(xeon.example.org., , 1, 28) ;; res_query(xeon.example.org, 1, 28) ;; res_mkquery(0, xeon.example.org, 1, 28) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26789 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; xeon.example.org, type = AAAA, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26789 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; xeon.example.org, type = AAAA, class = IN example.org. 1D IN SOA ns1.example.org. soa.example.com. ( 2002082901 ; serial 3H ; refresh 30M ; retry 4w2d ; expiry 1D ) ; minimum ;; rcode = 0, ancount=0 ;; res_querydomain(xeon, example.org, 1, 28) ;; res_query(xeon.example.org, 1, 28) ;; res_mkquery(0, xeon.example.org, 1, 28) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26790 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; xeon.example.org, type = AAAA, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26790 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; xeon.example.org, type = AAAA, class = IN example.org. 1D IN SOA ns1.example.org. soa.example.com. ( 2002082901 ; serial 3H ; refresh 30M ; retry 4w2d ; expiry 1D ) ; minimum ;; rcode = 0, ancount=0 ;; res_querydomain(xeon, , 1, 28) ;; res_query(xeon, 1, 28) ;; res_mkquery(0, xeon, 1, 28) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26791 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; xeon, type = AAAA, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26791 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; xeon, type = AAAA, class = IN . 2h26m42s IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. ( 2002082900 ; serial 30M ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum ;; rcode = 3, ancount=0 ***delay occurs here... ;; res_querydomain(xeon.example.org., , 1, 1) ;; res_query(xeon.example.org, 1, 1) ;; res_mkquery(0, xeon.example.org, 1, 1) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26792 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; xeon.example.org, type = A, class = IN ;; Querying server (# 1) address = 127.0.0.1 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26792 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; xeon.example.org, type = A, class = IN xeon.example.org. 1M IN A 192.168.0.18 example.org. 1M IN NS xeon.example.org.org. xeon.example.org.org. 14m47s IN A 127.0.0.1 220 xeon.example.org ESMTP Sendmail 8.12.5/8.12.5; Thu, 29 Aug 2002 13:36:28 -0400 (EDT) >>> EHLO xeon.example.org 250-xeon.example.org Hello xeon [192.168.0.18], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP >>> MAIL From: SIZE=9 250 2.1.0 ... Sender ok >>> RCPT To: >>> DATA 250 2.1.5 ... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 g7THaSRq079062 Message accepted for delivery dan@m20.example.org... Sent (g7THaSRq079062 Message accepted for delivery) Closing connection to xeon.example.org. >>> QUIT 221 2.0.0 xeon.example.org closing connection [dan@xeon:~] $ Thank you. -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message