Can telnet to localhost but not its own IP address.

Very recent new Solaris 10 installation

Sun sparc 280R


bash-3.00# telnet 172.16.225.66 25
Trying 172.16.225.66...
telnet: Unable to connect to remote host: Connection refused

bash-3.00# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
11:23:47 -0800 (PST)
quit

bash-3.00# telnet host.domain.com 25
Trying 172.16.225.66...
telnet: Unable to connect to remote host: Connection refused

bash-3.00# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
11:27:31 -0800 (PST)
Gromit Wallace [ Di, 18 Dezember 2007 21:01 ] [ ID #1889942 ]

Re: Can telnet to localhost but not its own IP address.

Gromit Wallace <gromitwallace [at] lycos.com> writes:

> Very recent new Solaris 10 installation
>
> Sun sparc 280R
>
>
> bash-3.00# telnet 172.16.225.66 25
> Trying 172.16.225.66...
> telnet: Unable to connect to remote host: Connection refused
>
> bash-3.00# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
> 11:23:47 -0800 (PST)
> quit
>
> bash-3.00# telnet host.domain.com 25
> Trying 172.16.225.66...
> telnet: Unable to connect to remote host: Connection refused
>
> bash-3.00# telnet 127.0.0.1 25
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> 220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
> 11:27:31 -0800 (PST)

It is most likely Sendmail-FAQ/4.22.

http://www.sendmail.org/faq/section4.html#4.22
Subject: Q4.22 -- Why can't I receive external mail?
Date: December 4, 2002
Updated: August 16, 2004

--
[pl>en: Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Andrzej Filip [ Di, 18 Dezember 2007 21:16 ] [ ID #1889943 ]

Re: Can telnet to localhost but not its own IP address.

On Dec 18, 12:01 pm, Gromit Wallace <gromitwall... [at] lycos.com> wrote:
> Very recent new Solaris 10 installation
> Sun sparc 280R
> bash-3.00# telnet 172.16.225.66 25
> Trying 172.16.225.66...
> telnet: Unable to connect to remote host: Connection refused
> bash-3.00# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
> 11:23:47 -0800 (PST)
> quit
> bash-3.00# telnet host.domain.com 25
> Trying 172.16.225.66...
> telnet: Unable to connect to remote host: Connection refused
> bash-3.00# telnet 127.0.0.1 25
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> 220 host.domain.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Tue, 18 Dec 2007
> 11:27:31 -0800 (PST)

It would seem that you are using local.cf - that's the way it supposed
to work.
usenetpersongerryt [ Mi, 19 Dezember 2007 04:27 ] [ ID #1891028 ]

Re: Can telnet to localhost but not its own IP address.

> It would seem that you are using local.cf - that's the way it supposed
> to work.


You are right. I have an identical system that CAN ping its own IP
with
sendmail working, so it created confusion.

The system in question had a problem with its /etc/resolv.conf.
Now that it is corrected, the sendmail works.

Thanks!
Gromit Wallace [ Mi, 19 Dezember 2007 15:55 ] [ ID #1891032 ]
Miscellaneous » comp.mail.sendmail » Can telnet to localhost but not its own IP address.

Vorheriges Thema: Masquerading help
Nächstes Thema: Re: Why am I getting so much spam from/to my domain all of a sudden?