How to disable telnet services in windows servers

telnet

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?

Best Answer

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.