How to modify your MX records for Google Apps Mail / Gmail?

Once you sign up your domain for Google Apps, you will have to change the MX records for your domain in order to use it in Gmail.

If you are using cPanel, this can be easily done by using the MX Entry option. There find the domain you will be pointing to Google Apps Mail and delete all of its MX records.

Then add the following MX records with the corresponding priority for your domain:

Priority          Mail Server
1                      ASPMX.L.GOOGLE.COM.
5                      ALT1.ASPMX.L.GOOGLE.COM.
5                      ALT2.ASPMX.L.GOOGLE.COM.
10                    ASPMX2.GOOGLEMAIL.COM.
10                    ASPMX3.GOOGLEMAIL.COM.

When using the SiteGround MX Entry tool in cPanel, all you need to do is click the Set Google MX button and the needed records will be automatically set for your domain name.

The above instructions are in full compliance with the official Google Apps instructions and have been adapted to work with cPanel. They will require 24 hours to propagate and take effect. After that your mail will be handled exclusively by Google Apps Mail.

If your host does not use cPanel, you will have to find another way to change the MX records to Gmail. Still, the changes will be very similar to the above and the DNS records will be the same.

Gmail has proven to provide the best mail experience even to the most demanding users. That's why all web hosts should provide easy means to change the MX records to Gmail. If you have troubles with your current host doing this you can transfer to us.

Setting up your email is easy when you have the right host by your side. If you need a reliable partner to help you resolve email issues and provide expert support, check out our email hosting services.


  1. Reply August 10, 2015 / 19:32 Ferdinand FloresSiteGround Team

    this is for my account.

    is there a way to import my mail from my existing ( mail server to google mail server?


  2. Reply October 29, 2015 / 17:42 Sr FoxSiteGround Team

    If I move my mx records to google, how do I check my mail account that used to be on siteground. Presently I have gmail checking my siteground account.
    I also have other users on my domain who are not teckie. Will they be affected or is this transparent to them?

    • Reply November 3, 2015 / 12:07 Ivan YordanovSiteGround Team

      You can always check the e-mails in the mailbox that are present on our server from the Webmail. You can access each mailbox's webmail from the cPanel -> Mail -> More-> Access webmail. Changing the MX to Gmail will affect all of the mailboxes under the specific domain name in terms of the server that is handling the mail, but as a whole the process should be transparent to them.

  3. Reply November 13, 2015 / 14:28 ChrisSiteGround Team

    Do i need to update the A records as well, as the pop. and smtp. , etc. point to the old server I assume.

    • Reply November 16, 2015 / 14:11 Hristo PandjarovSiteGround Team

      Your mail is handled by the MX records. The A record shows where your web server is.

  4. Reply December 24, 2015 / 20:51 ShpendSiteGround Team

    Hi, i just added google mx record and my email that i have configured with outlook now are not there a way that i could use both, Office Outlook 2007 in my computer also google app for couple e-mails. because they dont want to pay to many e-mail so i have to also use my hosting emails

    • Reply December 25, 2015 / 10:09 Hristo PandjarovSiteGround Team

      There should be no problem doing that, just configure Outlook to work with the Google records. Then, you can access your account from the app and from the Google's web site.

  5. Reply April 14, 2016 / 14:31 RameshSiteGround Team

    Hi, CloudFlare and other sites suggest changing the MX Record to prevent DDoS attacks. What are my options if I don't use any mail features in my site and still want to protect my domain.

    • Reply April 15, 2016 / 08:18 Hristo PandjarovSiteGround Team

      MX records handle only the email for your domain name. You don't need to do anything if they point to the same location your A records point to.

  6. Reply May 9, 2016 / 18:06 Jon CarlsonSiteGround Team

    I'm trying to use Google Apps to handle email for registered users, but use cPanel's very basic forwarding for nonregistered users. Can you offer any tips on how to configure the MX records for this application?

    • Reply May 10, 2016 / 06:40 Hristo PandjarovSiteGround Team

      You can have your MX records either pointed to us, or pointed to Google, you can't do that type of filtering on account basis. I think Google has a setting that allows you to define how to handle emails sent to non-existent users. Note though, that that's a very easy way for spammers to fill your inbox if they try to reach your email accounts.

* (Required)