Re: Telnet = servname ai_socktype error
jaymax writes: [...] % telnet 0 smtp 0: servname not supported for ai_socktype What according to you 0 is ? -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “There was truth and there was untruth, and if you clung to the truth even against the whole world, you were not mad.” (George Orwell, Nineteen Eighty-Four, 1949) pgpKEegDH76yS.pgp Description: PGP signature
Re: Telnet = servname ai_socktype error
telnet 0 smtp is the same as telnet localhost 25 or telnet localhost smtp Ashish SHUKLA-6 wrote: jaymax writes: [...] % telnet 0 smtp 0: servname not supported for ai_socktype What according to you 0 is ? -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “There was truth and there was untruth, and if you clung to the truth even against the whole world, you were not mad.” (George Orwell, Nineteen Eighty-Four, 1949) -- View this message in context: http://old.nabble.com/Telnet-%3D%3E-servname-ai_socktype-error-tp29425269p29431829.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Telnet = servname ai_socktype error
jaymax writes: telnet 0 smtp is the same as telnet localhost 25 or telnet localhost smtp #v+ % getent hosts 0 0.0.0.0 0 % telnet 0 25 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 chateau.d.if ESMTP ^] telnet quit Connection closed. #v- I wasn't expecting this to even work. I hope this connecting to the wild-card address only works on the same box. And sorry I didn't know that connecting to 0.0.0.0 actually connects to 127.0.0.1. But its interesting how 'getent hosts' returns an IPv4 address when given a 32-bit number as hostname. -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” (Antoine de Saint-Exupéry) pgpOu795oPxcu.pgp Description: PGP signature
Re: Telnet = servname ai_socktype error
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 mss 16344,nop,wscale 3,sackOK,timestamp 10736343 0 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 mss 16344,nop,wscale 3,sackOK,timestamp 394525367 10736343 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 nop,nop,timestamp 10736344 394525367 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 nop,nop,timestamp 394525398 10736344 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 nop,nop,timestamp 10736375 394525398 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 nop,nop,timestamp 10736376 394525398 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 nop,nop,timestamp 394525399 10736376 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 r...@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 dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Telnet = servname ai_socktype error
FreeBSD my.domain.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@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 == % cat /etc/services | grep telnet telnet 23/tcp telnet 23/udp % cat /etc/services | grep smtp smtp 25/tcpmail #Simple Mail Transfer smtp 25/udpmail #Simple Mail Transfer % cat /etc/rc.conf inetd_enable=YES _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ But % telnet 0 smtp 0: servname not supported for ai_socktype % telnet localhost 25 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection reset by peer Trying ::1... telnet: connect to address ::1: Connection refused telnet: Unable to connect to remote host sockstat -4 == sockstat -4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS myname sshd 1732 3 tcp4 nnn.xxx.yyy.zzz:22 aaa.bbb.ccc.ddd:1256 root sshd 1709 3 tcp4 nnn.xxx.yyy.zzz:22 aaa.bbb.ccc.ddd:1256 root gnome-sess 1529 10 tcp4 *:54384 *:* www httpd 1328 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1328 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1327 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1327 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1326 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1326 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1325 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1325 4 tcp4 nnn.xxx.yyy.zzz:443 *:* www httpd 1324 3 tcp4 nnn.xxx.yyy.zzz:80 *:* www httpd 1324 4 tcp4 nnn.xxx.yyy.zzz:443 *:* root Xorg 1314 3 tcp4 *:6000*:* root inetd 1267 6 tcp4 *:143 *:* root sshd 1239 4 tcp4 *:22 *:* root httpd 1207 3 tcp4 nnn.xxx.yyy.zzz:80 *:* root httpd 1207 4 tcp4 nnn.xxx.yyy.zzz:443 *:* avahiavahi-daem 1176 15 udp4 *:5353*:* avahiavahi-daem 1176 16 udp4 *:60699 *:* mysqlmysqld 948 11 tcp4 *:3306*:* root perl5.8.9 794 5 tcp4 *:1 *:* root perl5.8.9 794 6 udp4 *:1 *:* qmaild tcpserver 778 3 tcp4 *:25 *:* root tcpserver 776 3 tcp4 *:110 *:* root mountd 667 7 udp4 *:914 *:* root mountd 667 8 tcp4 *:914 *:* root syslogd580 7 udp4 *:514 *:* root ntpd 371 20 udp4 *:123 *:* root ntpd 371 22 udp4 nnn.xxx.yyy.zzz:123 *:* root ntpd 371 25 udp4 127.0.0.1:123 *:* Anyone having ahy ideas as to what may be amiss? Thanks! -- View this message in context: http://old.nabble.com/Telnet-%3D%3E-servname-ai_socktype-error-tp29425269p29425269.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Telnet = servname ai_socktype error
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 r...@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 dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org