4 Ways to Use SMTP Commands to Test Email Flow

Often you need to test email and see if it's working.This is a test, please do not respond
With these commands you can test email flow at a.quit
very granular level to determine what's broken andSo, what does that all mean?
where.EHLO - introduce yourself to the mail server HELO
Scenario:can also be used but EHLO tells the server to use
Your domain: Domain you wish to send to: 1.the extended command set (not that we're using
Determine the mail server you're sending to.that).
* Open a CMD promptMAIL FROM - who's sending the email. Make sure to
* Type NSLOOKUPplace this is the greater than/less than brackets as
> set q=mxmany email servers will require this (Postini).
> Response:RCPT TO - who you're sending it to. Again you need
Non-authoritative MX preference = 50, mailto use the brackets. See Step #4 on how to test
exchanger = 2. Connect to their mail serverrelaying mail!
SMTP communicates over port 25. We will now tryDATA - tells the SMTP server that what follows is
to use TELNET to connect to their mail serverthe body of your email. Make sure to hit "Enter" at
"mail.theirdomain.com"the end.
* Open a CMD prompt. ("PERIOD") - the period alone on the line tells the
* TELNET 25SMTP server you're all done with the data portion
You should see something like this as a response:and it's clear to send the email.quit - exits the
220 ESMTP 6si6253627yxg.6TELNET session.
Be aware that different servers will come up with4. Test SMTP relay
different greetings but you should get SOMETHING.Testing SMTP relay is very easy, and simply requires
If nothing comes up at this point there are 2 possiblea small change to the above commands. See
problems. Port 25 is being blocked at your firewall, orbelow:ehlo mydomain.commail from:rcpt to:data
their server is not responding. Try a different domain,This is a test, please do not respond
if that works then it's not you..quit
3. Send an EmailSee the difference? On the RCPT TO line, we're
Now, use simple SMTP commands to send a testsending to a domain that is not controlled by the
email. This is very important, you CANNOT use theSMTP server we're sending to. You will get an
backspace key, it will work onscreen but not beimmediate error is SMTP relay is turned off. If you're
interpreted correctly. You have to type theseable to continue and send an email, then relay is
commands perfectly.ehlo mydomain.commail from:< ""allowed by that server.
>rcpt to:< "" >data