SMTP Commands to Test Mail Sending
View PDF | Print View | Html View
Written by: smith007
Total views: 31 |
Word Count: 517 |
Date: Mon, 28 Mar 2011 |
0 comments
Successful installation of SMTP is not a problem. Understanding it is fairly easy as it is a simple text based protocol. However, you always feel interested to test if the server is working properly or not. Fortunately, with the help of certain commands, you can always test the message flow and identify if any problem is there.
Determine Mail Server that Will Receive Email Messages Suppose you domain is medomain.com and you have to send mails to themdomain.com Enter NSLOOKUP at the command prompt.
- Set q=mx
- themdomain.com
Sending Email Now you have to key in SMTP commands. You have to enter them perfectly as backspace key will not function here. Type the followings carefully: ehlo mydomain.com mail from: < steve1007@medomain.com> rept to:< recipient@themdomain.com> data it is a test, so no need to respond. quit What does this refer to? EHLO – HELO command is for primary introduction whereas EHLO instructs the server to use the extra command set. Mail From – Always put this command within the greater than and less than brackets as most of the SMTP servers require this specification. RCPT to – It refers to the recipient. Make sure to use the command within the greater than and less than brackets. DATA - It introduces the body of your email to the SMTP server. (“PERIOD”) – It informs the SMTP server that data portion is successfully completed and the server can now send the mail. quit – You enter this command to exit from the TELNET session. Testing SMTP relay: Testing is fairly simple and you just have to make simple changes to the above-listed commands. ehlo medomain.com mail from: rept: to: data It is a test, no need to response quit
About the Author
Smith Witwiki is working for a SMTP service related company. So he has vast knowledge on SMTP relay services. For more information on SMTP he suggest visit http://www.mysmtp.eu/
Rating: Not yet rated

