Technology & Web Resources For Your Business
Home > Tech > Web Development > Step by Step Guide on How to Setup MX Records

Step by Step Guide on How to Setup MX 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
  • 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.

Our site's mission is to help consumers make more informed purchase decisions. This post may contain affiliate links (marked with "Affiliate" when you hover over them) and we will be compensated if you make a purchase after clicking through these links. Our website accepts financial compensation to allow us to provide this free service to you, our reader, while eliminating the need to clutter pages with advertisements. Compensation does not influence the rankings of products. More info on our disclosure page.

About Alex Schenker
Alex bring a series of in-depth articles on search marketing and content management systems as well as troubleshooting tips to We Rock Your Web's collection. He is an avid tennis player, nature enthusiast, and hiker, and enjoys spending time with his wife, friends, and dogs, Bella and Lily.
  • Anonymous


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

    • Web Rocker

      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.

  • Anonymous

    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.

    • Anonymous

      You are Basu and I am your boss.

      Ok bye. Take care & keep smiling

  • Anonymous

    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 🙂


  • Anonymous

    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.

Send this to friend