Question

Connect Failed : ?? telnet localhost 25

Asked by: lilyyan

Hello, experts:

I'm testing SMTP service in my pc:

IIS is enabled in my pc. In MS outlook express, when I go to tools--> accounts-->add (a mail account ), in the incoming mail server option, i  choose IMAP( i also tried pop3). In  the outgoing and incoming server name option, i input localhost for both.

when i try to send an email, i got the following error:
-------------------------
Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'localhost', Server: 'localhost', Protocol: SMTP, Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F
------------------------


I also did another test. When I set up another mail account in MS outlook express, in  the outgoing and incoming server name option, i input imap.myschool.edu and smtp.myschool.edu respectly, this time, i can send and receive emails.

Then in dos command , I tried to telnet localhost 25, it give this error:
Connecting To localhost...Could not open connection to the host, on port 25: Connect failed

I also tired : telnet smtp.myschool.edu, and got the same error.
My pc has windows firewall intalled and vrius scan.

Any suggestion,

Thanks for your attetion.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-03-12 at 18:10:56ID21348583
Tags

telnet

,

failed

,

connect

,

localhost

,

25

Topics

Network Software Firewalls

,

Consumer Firewalls

Participating Experts
4
Points
500
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. problem with localhost
    Hi Experts.. I'm having this situation that is really driving me crazy: First, i'm having a bunch of this in my mail logs: Jun 1 20:17:18 master sm-msp-queue[4249]: i5215P2u003813: to=postmaster, delay=00:11:53, xdelay=00:00:00, mailer=relay, pri=121074, relay=[127.0.0.1] ...
  2. MTAs, POP3, IMAP
    Hello, Hope someone can help me with this... Intro: I have a Debian/Linux/Apache server with hosting clients on it. The server uses a control panel called Confixx Pro [SW-Soft.com] which is similar to Plesk I suppose. The control panel has a built in POP3 webmail applicatio...
  3. SMTP AUTH and IMAP with sendmail on FreeBSD 7
    I'm trying to setup a FreeBSD 7 box to replace a FreeBSD 4 box. We're migrating web hosting and e-mail hosting from the old server to the new one. Goal: use sendmail to allow users to point their email clients at mail.domain.com for in & out, with SMTP Authentication so...
  4. Cannot get SSL IMAP to work
    I am not sure what I did since I had SSL IMAP working for a little while - I am trying to set it up so that I can get an outside client to connect up & send/receive emails using SSL IMAP. I thought I had all of the security correct, but I was hoping that someone would ha...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: srikrishnakPosted on 2005-03-13 at 00:26:51ID: 13527722

Okie....You cant use the local server to retrive mails..you can use it as SMTP only...Then telnetting to the port 25, I suspect the Firewall..Try unloading the firewall and then try..Make sure the SMTP service is started and running....
At the same time check weather the Virus Scan contains any inbuilt Firewall....

 

by: lilyyanPosted on 2005-03-13 at 16:03:10ID: 13530940

when i type netstat -na

i got the following:
-----------------------------------------
Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:25             0.0.0.0:0              LISTENING
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING

........
----------------------------------

port 25 is listening. so i guess the SMTP service is started and running.

my pc has Norton Internet Security Antivirus, Firewall, Antispan.

when i try to open port 25. in the firewall panel, i got the message saying that: this port is already opened.

but why i can't do telnet  localhost 25 ?

how to check Virus Scan contains any inbuilt Firewall ?

Appreciate your attention

 

by: srikrishnakPosted on 2005-03-13 at 18:32:35ID: 13531584

Okies...then we can say the SMTP service is running fine....In the case how about tryin to telnet on the IP address of your machine...(Localhost must work..but sometimes I observed because of the web server settings i could access my website with localhost)...

 

by: _ruudsje_Posted on 2005-03-14 at 13:53:14ID: 13539407

your antivirus software block port 25 for mass mail, disable this block (if you don't know how try uninstalling so you're shure it's the av)....

good luck

 

by: tmehmetPosted on 2005-03-15 at 01:39:19ID: 13542864

most vendors do not like to use personal firewall on servers or systems acting as servers.

There are dedicated software for servers eg AV, firewall, IDS etc. If you try to use personal AV, Firewalls for PC's and then try to act as a server, you will find issues for sure becuase the nature of the personal stuff is to block everything and protect not just yourself but those around you also.


 

by: lilyyanPosted on 2005-03-15 at 07:41:37ID: 13545496

Hi, thanks all attention. The problem is solved. As Ruudsje said, port 25 is blocked by antivirus. After unblocked, now it's working. (i'm implementing a mail function).

Srikrishnak, in your posting : Localhost must work..but sometimes I observed because of the web server settings i could access my website with localhost

so you can or can't access website with localhost?

now i can't telnet localhost  or telnet localhost 25.
it shows:
Connecting To localhost...Could not open connection to the host, on port 23: Connect Failed.

before unblocking port 25, i can at least telnet localhost

i will still open the above question for a while, since there is still some puzzel. :)

 

by: lilyyanPosted on 2005-03-15 at 07:53:58ID: 13545661

update the above post a little bit:

when i type telnet localhost
it shows:
Connecting To localhost...Could not open connection to the host, on port 23: Connect Failed.

when i type telnet localhost 25
nothing show up. and the dos screen just back to the my home directory. looks like i typed cd ..

before unblocking port 25, i can at least telnet localhost

 

by: _ruudsje_Posted on 2005-03-15 at 10:46:07ID: 13547498

you might need to restart your server or check smtp is listening on all ip addresses (unassigned)....this should work

a Normal telnet (thus on port 23) works only is you have telnet services installed on that server

 

by: srikrishnakPosted on 2005-03-16 at 04:27:14ID: 13554476

Okie....when you are telnetting localhost that means you are telnetting on port 23. If you have a telnet server running then only you can connect..otherwise you cant...on the other hand port 25 is SMTP..so you can connect...I think as ruudsje suggested you do a restart of the service and try again..
One more thing is as tmehmet mentioned its not very recommended to use the personnal AV software on servers...As i mentioned in my first post admin must check weather the AV is the culprit ;)....

 

by: lilyyanPosted on 2005-03-16 at 06:53:48ID: 13555738

Hi, thanks fo reply.  My pc has telnet service. and i can telnet to other ip ( if i have an account on that ip). but i can't do: telnet localhost. and i can telnet smtp.myschool.edu 25 , but i can't telnet localhost 25.

the follwoing is port info. in my pc, it looks like : smtp is listening on all ip addresses (unassigned)

Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:25             0.0.0.0:0              LISTENING
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
TCP    0.0.0.0:443            0.0.0.0:0              LISTENING
TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
TCP    0.0.0.0:5225           0.0.0.0:0              LISTENING
TCP    0.0.0.0:5226           0.0.0.0:0              LISTENING
TCP    0.0.0.0:8008           0.0.0.0:0              LISTENING
TCP    0.0.0.0:12001          0.0.0.0:0              LISTENING
TCP    127.0.0.1:25           127.0.0.1:1310         TIME_WAIT
TCP    127.0.0.1:25           127.0.0.1:1312         TIME_WAIT
TCP    127.0.0.1:25           127.0.0.1:1313         TIME_WAIT
TCP    127.0.0.1:25           127.0.0.1:1314         TIME_WAIT
TCP    127.0.0.1:25           127.0.0.1:1315         TIME_WAIT
TCP    127.0.0.1:25           127.0.0.1:1316         TIME_WAIT
TCP    127.0.0.1:1028         0.0.0.0:0              LISTENING

the pc i'm using has windows firewall and antivrus. i guess it's not personal edition. it comes with the windows xp pro.
just wanna know sth new ;)  thanks.


 

by: _ruudsje_Posted on 2005-03-16 at 07:18:25ID: 13556011

telnet service (port 23) is not listening on any ip neither 127.0.0.1 -> so telnet localhost will not work
telnet 25 (mail) is NOT listening on ip 127.0.0.1, but on 0.0.0.0 so it listens on any ip and it should work.

- what happens when you ping to localhost (no responce check hosts file)
- what happen when you telnet 127.0.0.1 25 (if that's not working localhost doesn't work either)

 

by: _ruudsje_Posted on 2005-03-16 at 07:20:21ID: 13556036

- what happens if you telnet to servername 25?

 

by: srikrishnakPosted on 2005-03-16 at 20:26:55ID: 13562108

Yes. Thats correct. You dont have telnet service listening on port 23. Anyway can you disable your firewall n AV for testing purposes..and check telnet on port 25.??
Another thing comes to my mind, how about the configuration of SMTP service...Did you enable any Ip restrictions..??

 

by: lilyyanPosted on 2005-03-17 at 14:39:11ID: 13570043

Hi, thanks for all your replies.

when i ping localhost: it shows:

Pinging PC35567 [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

when i telnet localhost 25 or telnet 127.0.0.1 25 ( turned off firewall. but i can't trun off AV. it seems that i don't have permission )

nothing shown up. and the dos screen just back to the my home directory. looks like i typed cd ..

but when i telnet somedomain.edu ( if i have an account on the domain), then the telnet service can work.

many thanks ;)



 

by: srikrishnakPosted on 2005-03-17 at 21:58:49ID: 13572011

Yeah...okie..just one question...You mentioned your DOS screen just back to ur home directory..just wanted to know..when you do a telnet localhost 25, did you get to see any thing on the screen ..even like "unable to telnet on localhost port 25"..or it just returns back to the dos prompt after a while..
if its the second case,then it might be your dos prompt not displaying any info, or your SMTP server not passing anything (normally you will get to see some infor like ..mssmtp svc ...blah blah....there if u type the normal smtp commands it will accept..you can try HELO...)

 

by: lilyyanPosted on 2005-03-18 at 08:37:29ID: 13576060

hello,

when i type telnet localhost, it shows:

Connecting To localhost...Could not open connection to the host, on port 23: Connect failed

when i type telnet localhost 25, it shows :
c:\

lots of thanks ;)

 

by: srikrishnakPosted on 2005-03-18 at 17:42:06ID: 13579909

Hmm...okie..first part..You cant telnet to your localhost as there is no Telnet service running..so you will get the same reply"connect failed"..
Second as SMTP service running you should get some responce when you do telnet localhost 25. Not C:\..It seems some config issue i guess...Have u configured your smtp service/server as per MS...Its pretty simple infact...just few steps...When you open IISadmin you must see the SMTP service instance started n running..i guess its something like "Default SMTP Virtual Server"..you check it properties...

 

by: lxtatePosted on 2010-10-14 at 12:43:59ID: 33908055

what else could be blocking port 25? i have uninstalled antivirus taken off everything that i think could be blocking that port and i'm still being blocked

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...