Apr 30 2007
Last update:

How to Setup MX Records

Filed under: Service Providers » Email,

Setting up MX (Email) Records

Settings MX records manually can be useful if you want to host your site on one server but handle email via another server or hosting company.  If you have access to WHM, you can usually set MX records yourself.  If you do not, submit a support ticket to your hosting provider.

Adding and Settings MX Records in WHM (Web Host Manager)
  • Log into WHM (via example.com/whm)
  • Under "DNS Functions," click on "Edit DNS Zone"
  • Choose the domain name for which you wish to set MX records and click "edit"
  • Add new records (usually two) pointing to the server (domain name) that is hosting your email, in the following format:
domain name | TTL   | Record Type | Priority | MX Record 
example.com. | 14400 | MX          | 0        | mx1.example.com.

Important - remember to place periods after the domain name and MX record entries!
  • Erase the values for your old MX entry and click "save"
  • Voila - you have successfully created new MX record entries, setting your email to be handled by another server.
Post any questions or comments below :)
Your rating: None Average: 2.4 (9 votes)
Your rating: None Average: 2.4 (9 votes)
Email this page PDF of this page Print this page
Leave a comment

How to set up mx records in .tk


I want to set up mx records using a .tk domain account. Please help and also tell how could I use it.

Contact your email & hosting providers

MX records are specific to your email hosting provider. Ask them what your MX records should be. Then tell your website hosting provider (may be the same as your email hosting provider) to set them for you if you don't know how.

Incoming mail is not working

I Am Basu. Please help me.

OS: Red hat Linux

In my mail server I can send mails to others (outgoing is working) but I am not able to get the mails from the outside.


You are Basu and I am your boss.

Ok bye. Take care & keep smiling

Thank you so much for this

Thank you so much for this simple tutorial. I never knew how to direct an email to a different server than the web account before, but you have clearly make an understandable tutorial Smiling


One more step

If the email for a domain is handled by an external server, shouldn't the domain also be removed from /etc/localdomains and added to /etc/remotedomains ?

This is easy if one is running a VPS, but if it is just a reseller account, one has to ask the hosting company to do it.

A word or two about how to make the changes using command line would add to the value of this tutorial.

The content of this field is kept private and will not be shown publicly.

We use this trick question to try and prevent automated spam comments.