How to test SMTP operations using Telnet

Leave a comment

July 16, 2011 by Rakesh Boraiah


Telnet into Exchange server hosting IMS service using TCP port 25

Command is telnet <servername> 25

Turn on local echo on your telnet client so that you can see what you are typing.

Issue the following smtp command sequence

helo <your domain name><enter>                  
response should be as follows
250 OK

mail from: <your Email Address><enter>
response should be as follows
250 OK – mail from <your Email address>

rcpt to: <recipient address><enter>
response should be as follows
250 OK – Recipient <recipient address>

data<enter>
response should be as follows
354 Send data.  End with CRLF.CRLF

To: <recipient’s display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>

response should be as follows
250 OK

quit<enter>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: