Using Telnet To Check SMTP Service Print

  • 0

One of the most common e-mail issues we encounter in our support department is customers who are traveling and are encountering problems trying to send e-mail.

Please note that even if you are having problems sending email from a home or work/office network you can still use the following commands to test your connection to your usual SMTP server.

Windows Users

If you are using Windows Vista or Windows 7 you may need to enable the Telnet client prior to following the rest of the instructions listed below. If you are unable to run Telnet at the command prompt you will need to follow these extra steps:
1. Click on Start.
2. Click on Control Panel.
3. Click on Programs and Features.
4. Click on Turn Windows Features On and Off.
5. Check the box next to Telnet Client and click OK.

You should now be able to run the telnet command from the command prompt and proceed with the instructions below.

Click on Start and then Run. In the run box that appears type in the word command and press enter. cmd will also work for many versions of windows. This will open a command prompt window.

Type in the following command:

telnet 25


telnet 26

This will connect to the mail server on port 25 or 26 which is the port used to send e-mail.

If your connection is successful you should see a response from the SMTP server similar to the one below:
telnet 25

Trying [IP Address of mail server]...
Connected to
Escape character is '^]'. ESMTP Exim 4.69 #1 Mon, 29 Jun 2009 11:27:42 -0400
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

This is an example of an expected response, meaning that your computer is able to connect to the target SMTP server on port 25 or 26 successfully. What you see here is the SMTP server greeting, an announced message that the server displays whenever a connection is made to the SMTP port. When you use an email client like Thunderbird or Outlook the server greeting is not displayed.

If your computer were unable to connect you would receive an error message after your telnet command like Server TimeoutCould Not Reach Host, or a similar message. This indicates that there is a block in place on the network you are connected to.

If you are connecting from home or your office you will need to get in touch with either your internet service provider or a local network administrator to determine your available options. Most networks that block access to off-network SMTP servers allow you to use their e-mail server to send messages from any domain address.

Because these blocks can be added at any time your ISP€™s support department might not be aware of the block when you contact them. You may need to ask them to run the telnet test from their end or contact one of their internal network specialists for more information.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution