Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my windows machine telnet services are set disabled in windows machine. But when you do:

telnet localhost 25 still the SMTP listens. how can i set not to listen to the service?

share|improve this question
2  
telnet localhost 25 != telnet localhost –  Ben Pilbrow Dec 15 '10 at 21:38
    
Seriously though, stop and/or disable the SMTP service... –  Ben Pilbrow Dec 15 '10 at 21:40
2  
Please go review some of your older questions. If a valid answer is present then accept it, if not then add comments and/or update your questions to make it clear why you haven't accepted an answer. –  Zoredache Dec 16 '10 at 0:53
add comment

2 Answers

up vote 6 down vote accepted

Port 25 is not the telnet port. It is the SMTP port, and what you're getting is the response from the SMTP server — as you say, "still the SMTP listens".

When you are using the telnet client this way, you are not actually using the telnet protocol. You're using the same command, but conveniently, unless you connect to something that starts sending the special telnet control character (0xFF in hex), it effectively acts like a raw TCP connection. (Give or take some technical quibbles — if the quibbles matter, use netcat instead of telnet.) And then, if you like, since SMTP is a simple protocol, you can type SMTP commands and pretend you are a mail program. (This can be quite useful for testing.)

So, basically, if you want this to stop, turn off SMTP. Otherwise, don't worry about it.

share|improve this answer
add comment

Port 25 is email not telnet, if you're running a mail server on that box you cant disable it. If you aren't running a mail server on the box then you just have to find whatever product has gotten installed that is listening on port 25.

share|improve this answer
    
Thank you for clearing it. Now I am much clear on this. –  Riyas Jun 26 '11 at 18:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.