Step by Step Guide on How to Setup MX Records

To sustain this free service, we receive affiliate commissions via some of our links. This doesn’t affect rankings. Our review process.

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
  • 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 | 14400 | MX | 0 |

Important – remember to place periods after the domain name and MX record entries!

  • Erase the values for your old MX entry and click “save”

You have successfully created new MX record entries, setting your email to be handled by another server.

Post any questions or comments below.

About The Author:

Alex has been involved on the business side of the internet since the early 2000's. He holds both a Management Science degree from the University of California at San Diego as well as a Computer Science degree from NJIT.

We Rock Your Web had its roots back in 2004 as the tech blog for a web design and development company Alex founded that has grown and evolved into the parent company of We Rock Your Web.

While his foundation is rooted in web development, his expertise today lies in content and digital marketing, SEO, organic and paid search, analytics, and publishing. Alex is an avid tennis player, nature enthusiast, and hiker, and enjoys spending time with his wife, friends, and dogs.

Disclaimer: This website contains reviews, opinions and information regarding products and services manufactured or provided by third parties. We are not responsible in any way for such products and services, and nothing contained here should be construed as a guarantee of the functionality, utility, safety or reliability of any product or services reviewed or discussed. Please follow the directions provided by the manufacturer or service provider when using any product or service reviewed or discussed on this website.

Leave a Reply

newest oldest most voted
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.

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 🙂


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


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

Alex Schenker
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.