Telnet working for Localhost, but not host ip

I am trying to understand why a SMTP service on my box for port 940 can be accessed via localhost by not my box's IP.  I've checked my firewall, etc.

Please understand my question is regarding network configuration, not email services.

My question is, what could be blocking this access ?

[$ telnet localhost 940
Connected to localhost.
Escape character is '^]'.
220 server1.XXXXXXXXXXt ESMTP Postfix
221 2.0.0 Bye
Connection closed by foreign host.
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:18:4A:CB:DA  
          inet addr: Bcast:  Mask:
          inet6 addr: fe80::226:18ff:fe4a:cbda/64 Scope:Link

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host

telnet 940
telnet: connect to address Connection refused
Who is Participating?
jackiechen858Connect With a Mentor Commented:
Edit /etc/postfix/ and change the line to "inet_interfaces = all" then restart Postfix
jackiechen858Connect With a Mentor Commented:
Still It probably is a email service configuration, not network configuration.

 netstat -nap | grep :940 | grep LIST

It will tell you which process is listening on port 940, if you see  a "", that means this service is configured to only listen on localhost. You will need to modify the email service to let it listen on ""
Ernie BeekConnect With a Mentor ExpertCommented:
Did you check 'mynetworks' in /etc/postfix/ ?
Sarge516Author Commented:
Thanks, all the suggestions above helped, esp the last.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.