How to test SMTP operations using Telnet

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

How to test SMTP operations using Telnet

Postby Belinda Frick » Fri Mar 20, 2015 12:35 pm

How to test SMTP operations using Telnet

1. Telnet into Exchange server hosting IMS service using TCP port 25.
Command is
Code: Select all
telnet <servername> 25


2. Turn on local echo on your telnet client so that you can see what you are typing.
On Win 9x and NT 3.5/4.0 Telnet client this done by selecting the "preferences" from the "terminal" pull down menu, and checking the local echo radio button. For Windows 2000 telnet client, issue command
Code: Select all
"set local_echo"
, from the telnet command prompt.

3. Issue the following smtp command sequence

Code: Select all
helo <your domain name>
<enter>
response should be as follows
250 OK

Code: Select all
mail from: <your Email Address>
<enter>
response should be as follows
250 OK - mail from <your Email address>

Code: Select all
rcpt to: <recipient address>
<enter>
response should be as follows
250 OK - Recipient <recipient address>

Code: Select all
data
<enter>
response should be as follows
354 Send data. End with CRLF.CRLF

Code: Select all
To: <recipient's display name>
<enter>
Code: Select all
From: <your display name>
<enter>
Code: Select all
Subject: <Subject field of Email message>
<enter>
Code: Select all
<Enter you body text>
<enter><enter> . <enter>
response should be as follows
250 OK

Code: Select all
quit
<enter>
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Return to Support Archive's (TNG)

Who is online

Users browsing this forum: No registered users and 1 guest