Solved

Telnet working for Localhost, but not host ip

Posted on 2010-11-22
4
885 Views
Last Modified: 2012-08-13
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
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server1.XXXXXXXXXXt ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:18:4A:CB:DA  
          inet addr:192.168.1.57 Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:18ff:fe4a:cbda/64 Scope:Link

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

telnet 192.168.1.57 940
Trying 192.168.1.57...
telnet: connect to address 192.168.1.57: Connection refused
 
0
Comment
Question by:Sarge516
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Assisted Solution

by:jackiechen858
jackiechen858 earned 400 total points
ID: 34190498
Still It probably is a email service configuration, not network configuration.

run
 netstat -nap | grep :940 | grep LIST

It will tell you which process is listening on port 940, if you see  a "127.0.0.1:940", that means this service is configured to only listen on localhost. You will need to modify the email service to let it listen on "0.0.0.0:940"
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 100 total points
ID: 34190543
Did you check 'mynetworks' in /etc/postfix/main.cf ?
0
 
LVL 7

Accepted Solution

by:
jackiechen858 earned 400 total points
ID: 34190630
Edit /etc/postfix/main.cf and change the line to "inet_interfaces = all" then restart Postfix
0
 

Author Comment

by:Sarge516
ID: 34191463
Thanks, all the suggestions above helped, esp the last.

Sarge
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Keystroke loggers have been around for a very long time. While the threat is old, some of the remedies are new!
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question