ID #1077

How do I check if Mail Redirection works for my domain

Assume your domain is mydomain.com and you have setup mail redirection to your mail server mail.mydomain.com at port 26. The followings are the steps to take to make sure mail redirection for your domain is working.

 

Step 1. First you need to check if your mail server is setup correctly; otherwise, the emails won't be taken by your server. Here we assume you have already setup email address info@mydomain.com.

 

 

You open a DOS/Linux shell prompt and use telnet command to telnet to your mail server at port 26. Note: the bold words are what you type.

 

 

 c:>> telnet mail.mydomain.com 26
Trying 83.86.191.200...
Connected to mail.mydomain.com (83.86.191.200).
Escape character is '^]'.
220 mail.mydomain.com Microsoft ESMTP MAIL Service ready at Thu, 26 Jan 2012 18:33:00
helo mydomain.com
250 mail.mydomain.com Hello [67.214.161.140]
mail from:<anyemail@anydomain.com>
250 2.1.0 Sender OK
rcpt to:<info@mydomain.com>
250 2.1.5 Recipient OK
data
354 Start mail input; end with <CRLF>.<CRLF>
subject: test message only
Ignore the message. It is testing.
.                               Note: you type period . to indicate end of the message
250 2.6.0 <c932acd0-3651-4764-8bc0-db3b7e2c7a62@SBS.nominet.local> [InternalId=25] Queued mail for delivery
quit
221 2.0.0 Service closing transmission channel
Connection closed by foreign host.

 

 

Note: The words in bold are what you need to type. Others are responses by either the command or the server. For the rcpt to command above, you should get "250 2.1.5 Recipient OK"; otherwise, it indicates that the server may have problem. Other possilbe the server may reply are the followings:

 

rcpt to:<non-existemail@mydomain.com>
450 4.7.1 <non-existemail@mydomain.com>: 550 sorry, no mailbox here by that name (#5.1.1)
rcpt to:<someemail@a-domain-not-support-here.com>
554 5.7.1 <someemail@a-domain-not-support-here.com>: Relay access denied

 

The first reply indicates that the email server is configure to take email for mydomain.com but the email address does not exist. The second reply indicates the email server is not setup to take email for that domain.

 

Step 2. Make sure your domain is pointing the MX(mail exchangers) to smtp.dnsexit.com. The MX should get changed automatically when signing up the service. However, if your domain is not using our name servers, you will need to go to your DNS server to setup that manually.

 

 

You open a DOS/Linux shell prompt and use the following nslookup command to change what are the MX for the domain

 

   c:>> nslookup -type=mx yourdomain.com
Non-authoritative answer:
yourdomain.com        mail exchanger = 10 smtp.dnsexit.com.
  You should see the smtp server smtp.dnsexit.com as the only MX showing up after the dommand.

 

 

Step 3. After the above checking. The mail redirection for your domain should work already. You may send an email to your address to see if you receive the email. Or, you may still want to check if smtp.dnsexit.com take your email correctly with similar telnet command as step 1. 

 

 

You open a DOS/Linux shell prompt and use the following telnet command to telnet to smtp.dnsexit.com at port 25. Note: the bold words are what you need to type. Assume your domain is mydomain.com.

 

 

 c:>> telnet smtp.dnsexit.com 25
Trying 83.86.191.200...
Connected to smtp.dnsexit.com (83.86.191.200).
Escape character is '^]'.
220 smtp.dnsexit.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 26 Jan 2012 13:51:36 -0500
helo mydomain.com
250 smtp.dnsexit.com Hello [67.214.161.140]
mail from:<anyemail@anydomain.com>
250 2.1.0 Sender OK
rcpt to:<info@mydomain.com>
250 2.1.5 Recipient OK
data
354 Start mail input; end with <CRLF>.<CRLF>
subject: test message only
Ignore the message. It is testing.
.                   Note: you type period . to indicate end of the message
250 2.6.0 <c932acd0-3651-4764-8bc0-db3b7e2c7a62@SBS.nominet.local> [InternalId=25] Queued mail for delivery
quit
221 2.0.0 Service closing transmission channel
Connection closed by foreign host.

 

 

Note: The words in bold are what you need to type. Others are responses by either the command or the server.

 

For the rcpt to command above, you should get "250 2.1.5 Recipient OK"; otherwise, it indicates that smtp.dnsexit.com may not configured configured correctly for your domain (though this should not happen). Or in other words, if you see the following message:

 
554 5.7.1 <support@mydomain.com>: Relay access denied

 

It indicates smtp.dnsexit.com is not configured to take email for your domain. You should contact us to get support.

 




Tags: Mail Redirection

Related entries:

You can comment this FAQ