<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Genius Steve &#187; SMTP server</title>
	<atom:link href="http://www.geniussteve.com/categories/diagnostics-and-troubleshooting/smtp-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geniussteve.com</link>
	<description>Steven Mietelski's occasionally updated tech blog</description>
	<lastBuildDate>Fri, 19 Feb 2010 22:45:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Testing SMTP on Exchange</title>
		<link>http://www.geniussteve.com/testing-smtp-on-exchange/</link>
		<comments>http://www.geniussteve.com/testing-smtp-on-exchange/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:48:03 +0000</pubDate>
		<dc:creator>Steven Mietelski</dc:creator>
				<category><![CDATA[Diags/Troubleshooting]]></category>
		<category><![CDATA[Microsoft Exchange]]></category>
		<category><![CDATA[SMTP server]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Send Mail Transfer Protocol]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://www.geniussteve.com/?p=8</guid>
		<description><![CDATA[While the following guide on testing SMTP functionality on Microsoft Exchange Server is specific to MS Exchange, it should work for most SMTP servers, as well:


SUMMARY

This article describes how to telnet to port 25 on a computer that runs Simple Mail Transfer Protocol (SMTP) services to troubleshoot SMTP communication problems. The information in this article, [...]]]></description>
			<content:encoded><![CDATA[<p>While the <a href="http://support.microsoft.com/kb/153119">following guide on testing SMTP functionality on Microsoft Exchange Server </a>is specific to MS Exchange, it should work for <em>most</em> SMTP servers, as well:</p>
<blockquote>
<div class="section">
<h2 id="tocHeadRef" class="subTitle">SUMMARY</h2>
<p><script type="text/javascript"><!--
loadTOCNode(1, 'summary');
// --></script></p>
<div class="sbody">This article describes how to telnet to port 25 on a computer that runs Simple Mail Transfer Protocol (SMTP) services to troubleshoot SMTP communication problems. The information in this article, including error messages, only applies to issues when attempting to resolve SMTP communication issues with Microsoft Exchange-based servers and is not intended for general troubleshooting purposes.</p>
<p>You can use the following troubleshooting steps that are appropriate for the type of problem that you are experiencing. For example, if you are having problems sending over SMTP between two of your Microsoft Exchange 2000 Server servers, you can test the SMTP connectivity by using Telnet on the sending server to connect to port 25 on the destination server. By default, SMTP listens on port 25. Alternatively, if you are having problems receiving SMTP mail from the Internet, you can follow the steps that are listed in this article to test connectivity to your SMTP server from a host that resides on the Internet and that is not on your network.</p>
<p><strong>NOTE:</strong> This article only outlines information for a connectivity test for messaging with Exchange Server, if you are not able to connect to the Exchange Server, please search the KB for other symptoms or error messages you are experiencing. For additional information on troubleshooting Exchange transport issues, please refer to the following article in the Microsoft knowledgebase:</p>
<div class="indent"><a class="KBlink" href="http://support.microsoft.com/kb/257265/">257265</a><span class="pLink"> (http://support.microsoft.com/kb/257265/)</span> General troubleshooting for transport issues in Exchange 2000 Server and in Exchange Server 2003</div>
<p class="topOfPage"><a href="http://support.microsoft.com/kb/153119#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></p>
</div>
<h2 id="tocHeadRef" class="subTitle">MORE INFORMATION</h2>
<p><script type="text/javascript"><!--
loadTOCNode(1, 'moreinformation');
// --></script></p>
<div class="sbody">There are several different variations of SMTP in the Microsoft product line. The Microsoft Windows product line has an SMTP service that is included with Internet Information Services (IIS), and in Microsoft Windows NT Server 4.0, the SMTP service was included in the Option Pack. In more recent versions of Windows, IIS has been integrated in the operating system, and you can add IIS by using <strong class="uiterm">Add or Remove Programs</strong> in Control Panel. Additionally, Exchange 2000 and Microsoft Exchange Server 2003 use the existing SMTP service from IIS with additional features. Microsoft Exchange Server versions 4.0, 5.0, and 5.5 all come with their own versions of SMTP in the form of the Internet Mail Connector (IMC) or Internet Mail Service (IMS).</p>
<p><strong>Note</strong> In Exchange 5.0 and later, the Internet Mail Connector (IMC) is renamed the Internet Mail Service.</p>
<p>Before you start the Telnet session, you must have the full SMTP e-mail address of the destination user who you want to send this test message to. This e-mail address must be in the following format:</p>
<div class="indent"><var>User@Site.Domain.com</var></div>
<p>You must also have the fully qualified domain name (FQDN) or the IP address of the server computer that is running the SMTP services (for example, 10.120.159.1). If the servers are in your organization, you may already have this information. If the servers are external, the easiest way to find this information is to use Nslookup.exe to find the DNS records that contain this information. For additional information about NSlookup, click the following article number to view the article in the Microsoft Knowledge Base:</p>
<div class="indent"><a class="KBlink" href="http://support.microsoft.com/kb/200525/">200525</a><span class="pLink"> (http://support.microsoft.com/kb/200525/)</span> Using NSlookup.exe</div>
<p>For additional information about obtaining Internet Mail Exchanger records, click the following article number to view the article in the Microsoft Knowledge Base:</p>
<div class="indent"><a class="KBlink" href="http://support.microsoft.com/kb/203204/">203204</a><span class="pLink"> (http://support.microsoft.com/kb/203204/)</span> XFOR: How to Obtain Internet Mail Exchanger Records</div>
<p>Make sure that SMTP has started on the server that runs the SMTP service. To test if SMTP has started, you can run the basic tests that are listed in this article and verify that you receive the 220 response from the remote server. This also verifies that SMTP is running.</p>
<p><strong>Notes</strong></p>
<table class="list ul" border="0">
<tbody>
<tr>
<td class="bullet">•</td>
<td class="text">Some Telnet applications require you to turn on local echoing to see the commands that you are typing. To do this while in a Microsoft Telnet session, type <span class="userInput">set local_echo</span> at the command prompt.</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">In Microsoft Windows XP, type <span class="userInput">set localecho</span> instead of <span class="userInput">set local_echo</span>.</td>
</tr>
</tbody>
</table>
<p class="topOfPage"><a href="http://support.microsoft.com/kb/153119#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></p>
<h3 id="tocHeadRef">Basic Testing</h3>
<p><script type="text/javascript"><!--
loadTOCNode(2, 'moreinformation');
// --></script> Follow these steps to make sure that the host computer and the remote SMTP server can communicate. If you receive the following error message after you type any one of the following commands, the SMTP server does not recognize what you typed because of a syntax error or an erroneous command:</p>
<div class="errormsg">500 Command not recognized</div>
<p>Check the command and type it again or verify that you are communicating directly to a Microsoft SMTP server.</p>
<p><strong>Note</strong> Microsoft Telnet does not permit you to use the Backspace key. If you make a mistake when you type a command, you must press ENTER, and then start a new command.</p>
<p>In the following steps, you run Telnet from the command line. To open a command line, Click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, type <span class="userInput">cmd</span> in the <strong class="uiterm">Open</strong> box, and then click <strong class="uiterm">OK</strong>.</p>
<table class="list ol" border="0">
<tbody>
<tr>
<td class="number">1.</td>
<td class="text">You can start a Telnet session by using the Telnet command in the following format:</p>
<p><strong>Note</strong> Press ENTER after you type each line.</p>
<div class="indent"><span class="userInput">telnet <var>servername </var><var>portnumber</var></span></div>
<p>For example, type:</p>
<div class="indent">telnet <var>mail.contoso.com </var><var>25</var></div>
<p><strong>Note</strong> You can replace <var>servername</var> with the IP address or the FQDN of the SMTP server that you want to connect to.    Remember to press <strong class="uiterm">ENTER</strong> after each command.</p>
<p>If the command  works, you receive a response from the SMTP server that is similar to the following:</p>
<div class="indent">
<pre class="in_text">220 site.contoso.com Microsoft Exchange Internet Mail Connector &lt;version number of the IMC&gt;</pre>
</div>
<p><strong>Note</strong> There are different versions of Microsoft SMTP or third party SMTP servers, and you may receive different responses from the receiving server. What is important is that you receive the 220 response with the FQDN of the server and the version of SMTP. Additionally, all versions of Microsoft SMTP include the term &#8220;Microsoft&#8221; in the 220 response.</td>
</tr>
<tr>
<td class="number">2.</td>
<td class="text">Start communication by typing the following command:</p>
<div class="indent"><span class="userInput">EHLO <var>test.com</var></span></div>
<p><strong>Note</strong> You can use the HELO command, but EHLO is a verb that exists in the Extended SMTP verb set that is supported in all current Microsoft implementations of SMTP. It is a good idea to use EHLO, unless you believe that there is a problem with the Extended SMTP Verbs.</p>
<p>If the command is successful, you receive the following response:</p>
<div class="indent">
<pre class="in_text">250 OK</pre>
</div>
</td>
</tr>
<tr>
<td class="number">3.</td>
<td class="text">Type the following command to tell the receiving SMTP server who the message is from:</p>
<div class="indent"><span class="userInput">MAIL FROM:<var>Admin@test.com</var></span></div>
<p><strong>Note</strong> This address can be any SMTP address that you want, but it is a good idea to consider the following issues:</p>
<table class="list al" border="0">
<tbody>
<tr>
<td class="number">a.</td>
<td class="text">Some SMTP mail systems filter messages based on the MAIL FROM: address and may not permit certain IP addresses to connect or may not permit the IP address to send e-mail to the SMTP mail system if the connecting IP address does not match the domain where the SMTP mail system resides. In this example, that domain is <var>test.com</var>.</td>
</tr>
<tr>
<td class="number">b.</td>
<td class="text">If you do not use a valid e-mail address when you send a message, you cannot determine if the message had a delivery problem, because the non-delivery report (NDR) cannot reach an IP address that is not valid. If you use a valid e-mail address, you receive the following response from the SMTP server:</p>
<div class="indent">
<pre class="in_text">250 OK - MAIL FROM Admin@test.com</pre>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="number">4.</td>
<td class="text">Type the following command to tell the receiving SMTP server whom the message is to.</p>
<p><strong>Note</strong> It is a good idea to always use a valid recipient SMTP address in the domain that you are sending to. For example, if you are sending to <var>john@domain.com</var>, you must be certain that <var>john@domain.com</var> exists in the domain. Otherwise, you will receive an NDR.</p>
<p>Type the following command with the SMTP address of the person you want to send to:</p>
<div class="indent"><span class="userInput">RCPT TO: <var>User@Domain.Com</var></span></div>
<p>You receive the following response:</p>
<div class="indent">
<pre class="in_text">250 OK - Recipient User@ Domain.Com</pre>
</div>
</td>
</tr>
<tr>
<td class="number">5.</td>
<td class="text">Type the following command to tell the SMTP server that you are ready to send data:</p>
<div class="indent"><span class="userInput">DATA</span></div>
<p>You receive the following response:</p>
<pre class="code">354 Send data. End with CRLF.CRLF</pre>
</td>
</tr>
<tr>
<td class="number">6.</td>
<td class="text">You are now ready to start typing the 822/2822 section of the message. The user will see this part of the message in their inbox. Type the following command to add a subject line:</p>
<div class="indent"><span class="userInput">Subject: <var>test message</var></span></div>
<p>Press ENTER two times. You do not receive a response from this command.</p>
<p><strong>Note</strong> The two ENTER commands comply with Request for Comments (RFC) 822 and 2822. 822 commands must be followed by a blank line.</td>
</tr>
<tr>
<td class="number">7.</td>
<td class="text">Type the following command to add message body text:</p>
<div class="indent"><span class="userInput">This is a test message you will not see a response from this command.</span></div>
</td>
</tr>
<tr>
<td class="number">8.</td>
<td class="text">Type a period (.) at the next blank line, and then press ENTER.    You receive the following response:</p>
<div class="indent">
<pre class="in_text">250 OK</pre>
</div>
</td>
</tr>
<tr>
<td class="number">9.</td>
<td class="text">Close the connection by typing the following command:</p>
<div class="indent"><span class="userInput">QUIT</span></div>
<p>You receive the following response:</p>
<div class="indent">
<pre class="in_text">221 closing connection</pre>
</div>
</td>
</tr>
<tr>
<td class="number">10.</td>
<td class="text">Verify that the recipient received the message that you sent. If any error event messages appear in the application event log, or if there are problems receiving the message, check the configuration or the communication to the host.</td>
</tr>
</tbody>
</table>
<p class="topOfPage"><a href="http://support.microsoft.com/kb/153119#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></p>
<h3 id="tocHeadRef">Advanced Testing</h3>
<p><script type="text/javascript"><!--
loadTOCNode(2, 'moreinformation');
// --></script>In addition to the basic testing steps that are listed in this article, you can use a delivery receipt to test mail in both directions. You can use this method to verify that the SMTP server can accept an inbound connection and generate a delivery receipt back to the sender to test outbound connectivity of the SMTP server.</p>
<p>To request a delivery receipt for the test message, see step 4 in the &#8220;Basic Testing&#8221; section of this article to make sure that the information provided is a valid e-mail address that can receive the delivery receipt. Then in step 5 in the &#8220;Basic Testing&#8221; section of this article, type the following command in the Telnet session:</p>
<div class="indent"><span class="userInput">RCPT TO:<var>User@Site.Domain.Com</var> notify=success,failure</span></div>
<p class="topOfPage"><a href="http://support.microsoft.com/kb/153119#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></p>
</div>
</div>
<hr />
<h5>APPLIES TO</h5>
<table class="list" border="0">
<tbody>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange Server 2003 Standard Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange Server 2003 Enterprise Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange 2000 Server Standard Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange Server 5.5 Standard Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange Server 5.0 Standard Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Exchange Server 4.0 Standard Edition</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Internet Information Services 6.0</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Internet Information Services 5.0</td>
</tr>
<tr>
<td class="bullet">•</td>
<td class="text">Microsoft Internet Information Server 4.0</td>
</tr>
</tbody>
</table>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.geniussteve.com/testing-smtp-on-exchange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
