Article ID: 153119 - Last Review: May 22, 2012 - Revision: 11.0 XFOR: Telnet to Port 25 to Test SMTP Communication
This article was previously published under Q153119 If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business (http://smallbusiness.support.microsoft.com) site.On This PageSUMMARYThis 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 that might occur when you are trying to resolve SMTP communication issues with servers that are running Microsoft Exchange Server and is not intended for general troubleshooting. Follow the troubleshooting steps that are appropriate for the problem that you are experiencing. For example, if you have problems sending email messages over SMTP between two of your servers that are running Exchange 2000 Server, 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. Or, if you have problems receiving SMTP email from the Internet, 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 located on your network. Collapse this image ![]() 257265
(http://support.microsoft.com/kb/257265/
)
General troubleshooting for transport issues in Exchange 2000 Server and in Exchange Server 2003
MORE INFORMATIONThere are several variations of SMTP in the Microsoft product line. The Windows product line has an SMTP service that is included with Internet Information Services (IIS), and in Windows NT Server 4.0, the SMTP service was included in the Option Pack. In more recent versions of Windows, IIS is integrated into the operating system, and you can add IIS by using Add or Remove Programs in Control Panel. Additionally, Exchange 2000 Server and Exchange Server 2003 use the existing SMTP service from IIS with additional features. Exchange 4.0 Server, Exchange 5.0 Server, and Exchange 5.5 Server include their own versions of SMTP in the form of the Internet Mail Connector (IMC) or Internet Mail Service (IMS). Collapse this image ![]() Before you start the Telnet session, you must have the full SMTP email address of the destination user who you want to send this test message to. This email address must be in the following format: User@Site.Domain.com You must also have the fully qualified domain name (FQDN) or the IP address of the server 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 (also known as Internet Mail Exchanger records) that contain this information. For additional information about NSlookup, click the following article number to view the article in the Microsoft Knowledge Base: 200525
(http://support.microsoft.com/kb/200525/
)
Using NSlookup.exe
For additional information about obtaining Internet Mail Exchanger records, click the following article number to view the article in the Microsoft Knowledge Base:
203204
(http://support.microsoft.com/kb/203204/
)
XFOR: How to Obtain Internet Mail Exchanger Records
Make sure that SMTP has started on the server that runs the SMTP service. To test whether 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. Collapse this image ![]()
Basic TestingTo make sure that the host computer and the remote SMTP server can communicate, follow these steps. 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 incorrect command:500 Command not recognized Collapse this image ![]() In the following steps, you run Telnet from the command line.
Advanced TestingIn 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 incoming connection and generate a delivery receipt back to the sender to test outgoing connectivity of the SMTP server.To request a delivery receipt for the test message, see step 5 in the "Basic Testing" section to make sure that the information provided is a valid email address that can receive the delivery receipt. Then in step 6 in the "Basic Testing" section, type the following command in the Telnet session: RCPT TO:User@Site.Domain.Com notify=success,failure APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top
