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.

Guide to Web Hosting ServicesSetting 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 (Web Host Manager – the interface you typically get with a cPanel-based hosting provider on a multi-site plan), you can usually set MX records yourself.  If you do not, submit a support ticket to your hosting provider.

Adding And Setting MX Records In WHM (Web Host Manager)

  1. Log into WHM (via your website, i.e.
  2. Under “DNS Functions,” click on “Edit DNS Zone”
  3. Choose the domain name for which you wish to set MX records and click “edit”
  4. 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!

Lastly, 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!

Best Website Hosting Companies Review: Dreamhost vs Bluehost vs Godaddy vs HostgatorWho’s The Best Hosting Provider?

Our experts provide annual reviews of the top hosting providers, for personal (a simple blog on a shared server) to enterprise use (Fortune 500 company with dedicated cloud server system).

Got any other email or hosting questions we can help with?

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.

Notify of
Oldest Most voted
Inline Feedbacks
View all comments


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

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.

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 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 🙂


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.