From owner-freebsd-questions@FreeBSD.ORG Sat Aug 14 04:34:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E72841065696 for ; Sat, 14 Aug 2010 04:34:01 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id AD86E8FC08 for ; Sat, 14 Aug 2010 04:34:01 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ok8RV-0005uC-1o for freebsd-questions@freebsd.org; Fri, 13 Aug 2010 21:34:01 -0700 Message-ID: <29434929.post@talk.nabble.com> Date: Fri, 13 Aug 2010 21:34:01 -0700 (PDT) From: jaymax To: freebsd-questions@freebsd.org In-Reply-To: <20100813032718.GD18896@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jaymax36@gmail.com References: <29425269.post@talk.nabble.com> <20100813032718.GD18896@dan.emsphone.com> Subject: Re: Telnet => servname ai_socktype error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2010 04:34:02 -0000 TY Dan, I ran the tcpdump on the lo0 interface, ran telnet as shown below, interestingly only the "telnet localhost 25" produced an output (which I cannot fully decipher, except for the acknowledgment "hand shake" and the checksum, but can't figure out the "drop" or closure event Oddly, "telnet localhost smtp" and "telnet localhost " produced nothing in the dumpfile, just the "localhost: servname not supported for ai_socktype" to stdout [1] mach# telnet localhost > localhost: servname not supported for ai_socktype > [2] mach# telnet localhost smtp > localhost: servname not supported for ai_socktype > [3] mach# telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > Connection closed by foreign host. > Only [3] produced a tcpdump output, shown as follows ==> > mach# tcpdump -i lo0 -vvv >> tcpdumpfile > > Ctrl C > 7 packets captured > 7 packets received by filter > 0 packets dropped by kernel > 20:31:41.366749 IP (tos 0x10, ttl 64, id 11415, offset 0, flags [DF], proto TCP (6), length 60) localhost.54336 > localhost.25: S, cksum 0x5c3a (correct), 1583394158:1583394158(0) win 65535 20:31:41.366815 IP (tos 0x0, ttl 64, id 11416, offset 0, flags [DF], proto TCP (6), length 60) localhost.25 > localhost.54336: S, cksum 0xc615 (correct), 2069694587:2069694587(0) ack 1583394159 win 65535 20:31:41.366836 IP (tos 0x10, ttl 64, id 11417, offset 0, flags [DF], proto TCP (6), length 52) localhost.54336 > localhost.25: ., cksum 0x0c01 (correct), 1:1(0) ack 1 win 8960 20:31:41.398688 IP (tos 0x0, ttl 64, id 11421, offset 0, flags [DF], proto TCP (6), length 52) localhost.25 > localhost.54336: F, cksum 0x0be1 (correct), 1:1(0) ack 1 win 8960 20:31:41.398731 IP (tos 0x10, ttl 64, id 11422, offset 0, flags [DF], proto TCP (6), length 52) localhost.54336 > localhost.25: ., cksum 0x0bc2 (correct), 1:1(0) ack 2 win 8960 20:31:41.399162 IP (tos 0x10, ttl 64, id 11423, offset 0, flags [DF], proto TCP (6), length 52) localhost.54336 > localhost.25: F, cksum 0x0bc0 (correct), 1:1(0) ack 2 win 8960 20:31:41.399191 IP (tos 0x0, ttl 64, id 11424, offset 0, flags [DF], proto TCP (6), length 52) localhost.25 > localhost.54336: ., cksum 0x0bc0 (correct), 2:2(0) ack 2 win 8959 Hope you can see something in there, Thanks again PS: Couldn't find anything in the /var/log files either Shouldn't the telnet localhost generate a connection? ------------------------------------------ Dan Nelson wrote: > > In the last episode (Aug 12), jaymax said: >> >> FreeBSD my.domain.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 >> 08:49:13 >> UTC 2009 >> root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >> >> Testing a Qmail SMTP installation with Telnet >> >> (normally use SSH for networking) >> >> Temporary Telnet set up for testing ==> >> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> >> Server set up ==> >> >> % telnet localhost 25 >> Trying 127.0.0.1... >> telnet: connect to address 127.0.0.1: Connection reset by peer > > That sounds like you connected but qmail crashed or otherwise uncleanly > closed the socket. Does a tcpdump on lo0 show any interesting activity > when > you try that command? > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://old.nabble.com/Telnet-%3D%3E-servname-ai_socktype-error-tp29425269p29434929.html Sent from the freebsd-questions mailing list archive at Nabble.com.