Solved

Telnet working for Localhost, but not host ip

Posted on 2010-11-22
4
878 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
  • 2
4 Comments
 
LVL 7

Assisted Solution

by:jackiechen858
jackiechen858 earned 400 total points
Comment Utility
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
Comment Utility
Did you check 'mynetworks' in /etc/postfix/main.cf ?
0
 
LVL 7

Accepted Solution

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

Author Comment

by:Sarge516
Comment Utility
Thanks, all the suggestions above helped, esp the last.

Sarge
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now