Solved

Telnet localhost on port 25 sometimes resolves to Hotmail, or Google mail server?!!

Posted on 2008-09-30
2
552 Views
Last Modified: 2012-06-22
Experts,

I've got a really strange problem on one of my network servers.  The server is running MailEnable mailserver, and this is listening on port 25 (Any available IP address).

I attempt a telnet as follows:

telnet localhost 25
telnet 127.0.0.1

Sometimes these respond fine, with the default mailserver messages (220 Welcome to mailserver), and other times it will resolve to all sorts of remote mail servers, ie. (220 Welcome Google server) or (220 Hotmail server).

I can't see anything to suggest why this is occuring.

REmotely connecting via telnet to the server's static WAN IP address responds correctly everytime, and my reasons for querying this is because the server has ASP scripts which must send through localhost, the static IP address or the loop back address (all of which can respond with a remote server!)

Please help!
0
Comment
Question by:mhouldridge
2 Comments
 
LVL 44

Accepted Solution

by:
Darr247 earned 500 total points
ID: 22606314
Did you ever define localhost as 127.0.0.1 in the HOSTS file?

It's usually in
%windir%\system32\drivers\etc

All 127.x.x.x IPs are reserved for loopback, if I recall correctly, but I'm not certain than 'localhost' is hard coded as 127.0.0.1.
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

707 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

13 Experts available now in Live!

Get 1:1 Help Now