Answered by the Webhosting Experts
Tags +

cPanel Servers
at Hivelocity

Introducing: Flat Rate Pricing
The most affordable way to run a cPanel Dedicated Server. Simple, flat rate pricing in 3 tiers.

1-500 Accounts $45/mo.

501-1000 $114/mo.

1001+ Accounts $189/mo.
(*Plus $.175/additional account)

Tags +

How to Configure an MX Record

What is an MX Record?

MX records, or mail exchange records, are special server settings that help control the way your email is routed. In terms of DNS, an MX record tells incoming mail which server can receive it, and then directs it to that server. In other words, if your MX records are pointing to the wrong location, you won’t be able to receive emails.

Most web hosts create DNS records for their clients that default to the host’s server. If you’d like to use a different mail provider separate from your hosting account, you need to create an MX record.

*Note: changing your MX records only points newly incoming mail to your updated email server. This means that any emails already on your existing mail server will not be transferred over.


Understanding the Structure of an MX Record

MX records use two important pieces of information when directing traffic: a priority number and the domain name where the server is hosted.

The priority number determines which order a server will receive mail in and starts with the lowest available priority, starting with “0”. If two servers with the same priority level are both available, one will be chosen at random.

The second part, the domain name, is the name of the specific mail server the mail is being sent to. They typically look something like ““. Some hosting providers have special instructions for setting up MX records and may also require a “.” placed at the end of the server name, such as ““. 


Configuring MX Records for Gmail

As Gmail is one of the most popular email providers, for the sake of this tutorial, we’ll focus on how to create MX records using Google’s default mail servers.

Google provides users with five different mail servers, assigning each a default priority level. They are:

  • ASPMX.L.GOOGLE.COM -> Priority 1
  • ALT1.ASPMX.L.GOOGLE.COM -> Priority 5
  • ALT2.ASPMX.L.GOOGLE.COM -> Priority 5
  • ALT3.ASPMX.L.GOOGLE.COM -> Priority 10
  • ALT4.ASPMX.L.GOOGLE.COM -> Priority 10

Using the default priority settings, your mail will be routed to the first available server with the lowest priority level. In most instances, this will be ASPMX.L.GOOGLE.COM, since it has a priority level of 1. 

If however, the first server is unavailable for some reason, then mail will be routed to the next available server. Since both ALT1 and ALT2 carry the same priority level, it will be sent to one of them at random.

More information on Google’s mail server’s can be found on their official support page.

Now that you know what the names for Google’s servers, you can set up the MX records for them using your favorite control panel.


Changing an MX Record Using cPanel

To setup or make changes to your MX records using cPanel, follow these steps:

  1. First, you’ll need to log in to your cPanel account using your username and password. You can access your control panel by using
  2. Next, in the Mail section of your dashboard, click on the icon for Modify Mail Exchanger (MX Entry).
  3. Click the option to Change an MX Entry.
  4. Select the domain from the drop-down menu.
  5. If you’re using Gmail, then in the section labelled Add New Record, enter the server information listed above.
  6. Set the priority number for each record, remembering that lower numbers have higher priority.
  7. In the Destination box, enter the name/domain of the new mail server. If using Gmail, start with:
    repeat for the other servers on the list.
  8. When you’ve finished making changes to the MX record, you can click Add New Record to save your changes.

*Note: it may take upwards of 48 hours for the DNS propagation to take effect.

If should ever want to delete an MX entry using cPanel, you can do so simply by clicking the Delete button next to the applicable MX record and confirming your selection.


Changing an MX Record Using WHM (Web Host Manager)

To setup or make changes to MX records using WHM, follow these steps:

  1. First, log in to your WHM account using your username and password.
  2. On the left-hand side, locate and click on the option for DNS Functions.
  3. Click on Edit DNS Zone.
  4. From the drop-down window, select your domain and click Edit.
  5. If there is already an existing MX record entered, you should delete it.
  6. Enter your domain name and leave the second box as is.
  7. From the drop-down menu, select the option for MX.
  8. If you’re using Gmail, then enter the information for Google’s mail servers as listed above, including the trailing period. For example:
  9. When you’re finished editing the records, click Save.

Keep in mind, it may take a day or so for your DNS changes to be updated.


Changing an MX Record Using Plesk

To setup or change an MX record using the Plesk control panel, follow these steps:

  1. First, you’ll need to log in to Plesk using your username and password.
  2. Under the Websites & Domains tab, select DNS Settings.
  3. Locate the domain you are making changes to and click the option to Manage.
  4. Select the option to Add a Record.
  5. Using the drop-down menu, change Record type to MX.
  6. Leave the option for Mail domain blank.
  7. In the form field labelled Mail exchange server, enter the name of the mail server you are sending your incoming mail to. If you are using Gmail, start with the first mail server:
  8. Using the drop-down menu labelled Specify the priority of the mail exchange server, enter the priority number for the server as listed above. If you do not have a specific priority number for the mail server you’re using, leave it set on “0“.
  9. Click on Apply to save your changes and repeat for any additional MX records you need to create.

Remember that changes to DNS won’t take effect immediately.

And there you have it! You should now be able to modify an MX record for Gmail using any one of the above control panels.


Popular Links

Looking for more information on MX Records? Search our Knowledge Base!

Interested in more articles about Web Hosting? Navigate to our Categories page using the bar on the left or check out these popular articles:

Popular tags within this category include: DNS, FTP, IIS, MX Records, and more.

Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.


The Hivelocity Difference

Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.

With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.

Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.



Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected] We are also available to you through our phone and live chat system 24/7/365.

Rapid Restore

Backup your entire server’s data every night and have access to 5 days of rolling restore points.  Restore your server’s data, OS and configuration any time you need it.

Our Rapid Restore service saves the day during accidental data loss, hardware failures and virus contraction. Simply pick your recovery point and restore the data from that day. 

DDoS Protection

While our competitors may advertise DDoS protection, most often, they are merely implementing easily evaded router rules or simply black-holing targeted servers. They consider this “DDoS protecting their network.” However, neither of these solutions should give comfort to any online business. Should your site be attacked, chances are likely both of these options will end with your server being taken offline. At Hivelocity, we take the responsibility of keeping your servers online very seriously. For this reason, we offer two very serious forms of DDoS protection.


Every solution we provide includes our Filtering Edge of Network System (FENS). FENS is a series of proprietary systems that proactively monitors and protects the entire Hivelocity Network from most common Denial of Service (DOS) and Distributed Denial of Service (DDoS) attacks.


For an extra fee, you can enhance your server’s protection further with the addition of our Server Defense System. Our Server Defense System sits in front of your server, inspecting inbound data and looking for malicious traffic. The moment an attack is detected, it instantly begins scrubbing each data packet. Hivelocity’s Server Defense System delivers business continuity even in the face of massive and complex attacks.

Our Server Defense System is like adding an alarm and armed guard to your business, alerting you to and destroying anything attempting to jump that fence. Our Server Defense System utilizes internally developed proprietary systems in addition to Corero’s Threat Defense Smartwalls for data packet scrubbing. Each of our data centers is a scrubbing center with Corero Smartwalls on-premise, allowing us to provide on-prem zero-lag data scrubbing.

SSL Certificates

The security of your online commerce and protecting your customers’ data is as important to us as it is to you. When your customers see the green bar, they will know their connection to you is protected. We offer single domain, multi-domain, and wild-card certificates.

We offer industry leading 128-bit encryption certificates, allowing you to conduct e-commerce with complete security. Inspire confidence in your customers by displaying any number of seals and indicators certifying that your site is secure.

Load Balancing

Adding this service to two servers with identical content will allow you to distribute your load evenly across your hardware. Don’t lose business because you couldn’t handle the demand. Load balance and handle your biggest resource spikes with ease.


Stop attacks, prevent unauthorized access, and achieve regulatory compliance. Our Juniper hardware firewalls offload the work so your server never has to consume resources protecting itself from malicious traffic. A single firewall can be used to protect multiple servers.

Cloud Storage

Cloud storage offers users redundancy and easy accessibility, ensuring your data remains secure and readily available. Scale to as much as you need for only a 20¢/GB.

Cloud Storage is distributed and replicated across many servers, protecting your data from hardware failure. Highly scalable, it can handle thousands of client connections via TCP/IP. Connect to your virtual drive with SFTP, FTP, and SSHMount and in the future NFS and AFP. Cloud Storage is based on a stackable design which is upgradeable up to 2TB per instance.