Solved

Telnet working for Localhost, but not host ip

Posted on 2010-11-22
4
881 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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