How To Use Telnet

SHARE WITH YOUR NETWORK!

Table of Contents

How To Use Telnet

When you’re troubleshooting mail flow, before you look elsewhere, you should at some point check to see if your server is actually delivering mail or not. There is no better way to do so than using a Telnet command.

Those of us who work in the IT field know about this command; others may have just heard about it and even then might not know what it is used for.

Telnet is a very basic command line and very easy to use. Below is an example of a complete message that is sent through Telnet.

PLEASE NOTE: if you try this make sure NOT to make any TYPOS as Telnet does not forgive backspaces or any type of deletion after you typed it. If you make any typos you must start again from scratch.

So, from your server or computer that runs an SMTP service:

1- Open the command prompt (Start>run and type: cmd and hit <Enter>)

2- Type : telnet Server_IP 25 <Enter>

3- Notice that you get a banner that displays a positive response of 220 and the version of the SMTP you are using or your customized banner.

4- From this line anything you see in BLUE is what you need to type, in BLACK is what the system responds:

220 myserver.mydomain.com ESMTP Receiver Version 5.13.1309.15521 ReadyHelo my_domain.com

250 OK

Mail from: <anyuser@domain.com>

250 anyuser@domain.com OK

rcpt to: <destination_User@destination_domain.com>

250 destination_User@destination_domain.com OK

Data

354 Ready for data

Subject: This is a test message

From: anyuser@domain.com

To: destination_User@destination_domain.com

Hi

This is a test message from telnet

. (NB You must put a period in this line.)

250 Message received OK [id=B0000085214@myserver.mydomain.com]

Quit

221 myserver.mydomain.com closing

Connection to host lost.

C:>

5- After the Quit command the system generates a message_ID, then Quit the telnet command by bringing you back to the C:> prompt, then delivers the message to the destination mailbox. At this point you should get the message, if not then your mail server might be the culprit.

Explore our Advanced Email Security Solutions

Protect your clients and simplify your operations with reliable, scalable email security solutions. Get in touch today to learn how we can support your success.

SHARE WITH YOUR NETWORK!

Ready to See the Difference?
Discover our advanced security products today.

Scroll to Top