Search This Blog

Loading...

Tuesday, October 19, 2010

How do you send a test email from the Windows Server command line?

The steps below require that the following requirements have been met:

  • In Windows Server, the Simple Mail Transfer Protocol Service has been installed.

  • In Windows Server, the Simple Mail Transfer Protocol Service has been set to Automatic and is listening on Port 25.

  • In Windows Server, the SMTP Virtual Server Smarthost/Outbound Security has been fully configured.  If Exchange Server is running on the Server, the SMTP Virtual Server is found within the Exchange System Manager MMC - Servers - ServerName - Protocols - SMTP.  If Exchange Server is not installed, the SMTP Virtual Server is found within the Internet Information Server MMC - ServerName - Default SMTP Virtual Server.

  • In Windows Server, the SMTP Virtual Server - SMTP Relay Restrictions have been defined.  Both the Local Loopback Address, 127.0.0.1, and the Private IP Address of the Server should be Granted access.

  • In the DNS Server which hosts the Domain, a forward and reverse entry is in place for the Server that will be sending the email.  Otherwise, receiving Mail Servers will identify sent email as spam.
  1. From the Mail Server, click Start - Run.

  2. Type: cmd

  3. Click OK.

  4. Type: telnet localhost 25

  5. Type: helo

  6. Hit Enter.

  7. Type: mail from: [address@domain.com]

  8. Hit Enter.

  9. Type: rcpt to: [address@domain.com]

  10. Hit Enter.

  11. Type: data

  12. Hit Enter.

  13. Type email text.

  14. Hit Enter.

  15. Type: .

  16. Hit Enter.
Your test email has been sent.

Please Note: When typing the above commands via telnet, you cannot hit the Backspace key.  If you do, you will have to start over from the beginning.


http://www.smartnetadmin.com

If you found this information helpful, please consider linking to Eugene Computer Repair.

Donations are greatly appreciated.

Subscribe to: Posts (Atom)

Legal Notice

Alan Curtis and A1 Smart Computer Services provide programming examples and technical information for illustration only without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose.

Alan Curtis does not assume any legal liability or responsibility for the accuracy and/or completeness of the information provided. Alan Curtis will not be held liable for any direct or indirect loss or damage arising under this legal notice or in connection with the use of this website. Alan Curtis is not affiliated with Microsoft, Yahoo and Google. All trademarks and copyrighted material are the property of their respective owners.

The opinions expressed by Alan Curtis on this blog is based upon information he considers reliable but is not warranted for its completeness or accuracy and should not be relied upon as such. Alan Curtis' statements and opinions are subject to change without notice.

The entire contents of this blog has been copyrighted by Alan Curtis and A1 Smart Computer Services unless otherwise indicated. All rights are reserved by Alan Curtis and A1 Smart Computer Services and content may not be reproduced, downloaded, disseminated, published, or transferred in any form or by any means, except with the prior written permission of Alan Curtis and A1 Smart Computer Services.

For professional Eugene Computer Repair, contact A1 Smart Computer Services.