Skip to main content

Troubleshoot SMTP issues using Telnet

Article # 3015833 - Page views: 462

There may be times when troubleshooting a workflow which requires sending email, to determine that an SMTP server is available and responsive.  The following can be used to confirm this, if Telnet is available. This test connects to the external SMTP server and sends a message. Note that this only works for sending unencrypted email.

Below is a generic example of what you would attempt to send and then in (parenthesis) is some information and what you would typically use locally.  Case doesn't appear to affect functionality in these tests.

C: is the client input - what you will be typing
S: is the server response - info that you should receive back

C: Telnet host 25 (Telnet server01 25 - Substitute "host" with the name or ip address of the SMTP server.
fter this, the screen should clear and you should see something indicating that the SMTP service is ready or something like that)

C: HELO  (helo - Substitute with the domain name)
S: 250 Hello []  (250 Hello [] - Indicates that everything is ok so far)

C: MAIL FROM:  (mail from: - This is the sender's email address)
S: 250 2.1.0  (Indicates that so far everything is good)

C: rcpt to: (rcpt to: -  Substitute with the email address of the recipient)
S: 250 2.1.5    (Indicates that so far everything is good)

C: data   (This gets the email prepared for the body of the message)
S: 354 Start mail input. (Indicates that you may start writing the text that will go in the body of the email)

C: Subject: test message (subject: test message - if you don't type "subject", "from" or "to" - it will just leave these blank and still work fine - by the way, you can do cc: also)

C: From: (from:

C: To: (to:


C: Hello,

C: This is a test.

C: Goodbye.

C: . 
S: 250 Mail queued for delivery.    (This indicates that we were successful)

C: Quit



Article # 3015833