How to Test / Validate SMTP Server

Document ID : KB000089965
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
How to Test / Validate SMTP Server
Resolution:
Telnet to your smtp server with the command:

telnet smtp.mydomain.com 25

Syntax :
telnet {smtp_domain_name} {port_number} 

And copy and paste the below (changing information in bold):

helo mydomain.com
mail from: username@mydomain.com
rcpt to: username@mydomain.com
data
From: test@mydomain.com
Subject: test mail from command line

This is a test message. Sent from machinename
.

Note : Do not forgot the "." at end which represents end of the message.