How to Test SMTP Email Using Telnet

  1. Open a telnet session: From a command prompt, type telnet, and then press ENTER.
  2. Type set local_echo on a computer running Microsoft Windows® 2000 Server or SET LOCALECHO on a computer running Windows Server™ 2003 or Windows XP, and then press ENTER. This command allows you to view the responses to the commands.
  3. Type o <your mail server domain> 25,and then press ENTER.
  4. Type EHLO <your mail server domain>, and then press ENTER.
  5. Type MAIL FROM:<sender@domain.com>, and then press ENTER. If the sender is not permitted to send mail, the SMTP server returns an error.
  6. Type RCPT TO:<recipient@remotedomain.com>, (use your email address) and then press ENTER. If the recipient is not a valid recipient or the server does not accept mail for this domain, the SMTP server returns an error.
  7. Type DATA.
  8. If desired, type message text, press ENTER, type a period (.), and then press ENTER again.
  9. If mail is working properly, you should see a response similar to the following indicating that mail is queued for delivery:

250 2.6.0 <INET-IMC-01UWr81nn9000fbad8@mail1.contoso.com.

Leave a Reply

Your email address will not be published. Required fields are marked *