Get Free Linux Server Security, Performance & Troubleshooting Tips

How can I Configure Google MX records for on cPanel servers?

Google Apps Mail is one of the best email services out there. But it needs some manual configuration on your MX records in order to work properly. Today we will explore how to Configure Google MX records on cPanel servers.

How can I configure Google MX records on cPanel?

If one of your customers or you in the last case, need to setup & configure Google MX records on cPanel servers, it can be done easily using WHM interface.

Let’s move to:

WHM » DNS Functions » Edit DNS Zone

  • Then search for the domain name where you need to setup the Google Apps MX records.
    Click on Edit.
  • Delete all the existing MX records.
  • Finally, add the following 5 records, one per line after this option: “Add New Entries Below this Line”.
Name/Host     TTL     Record Priority Value  3600    MX    1         ASPMX.L.GOOGLE.COM.  3600    MX    5         ALT1.ASPMX.L.GOOGLE.COM.  3600    MX    5         ALT2.ASPMX.L.GOOGLE.COM.  3600    MX    10        ALT3.ASPMX.L.GOOGLE.COM.  3600    MX    10        ALT4.ASPMX.L.GOOGLE.COM.
  • You will see an option called “Email Routing for”, and make sure you select/activate this option: “Automatically Detect Configuration: Remote”.
  • Press save and that’s all.

Important: ASPMX.L.GOOGLE.COM must be located at the top, as the first priority mail service. Do not move or alter the order of the MX records, or its priority. 

Your MX records should look somehow like this:

Configure Google MX records on cPanel
Configure Google MX records on cPanel

How can I verify Google MX records are working?

You can use Google Check MX tool to check if your Google MX records setup was done in the right way:

You can also check your MX record propagation using tools like DNSLog


Now you know an easy way to configure Google MX records on cPanel servers. Your Google MX records should start propagating really fast, and be ready within 1 hour (almost all cases) to 48 hours max, in the worst case.

Remember that after this, you must create and manage all your email accounts from Google Apps Mail, and not from your cPanel server.

About the Author: Esteban Borges

Experienced Sr. Linux SysAdmin and Web Technologist, passionate about building tools, automating processes, fixing server issues, troubleshooting, securing and optimizing high traffic websites.

Leave a Reply

Your email address will not be published. Required fields are marked *