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.

  7. Reply July 14, 2016 / 12:13 Clayton BronsonSiteGround Team

    So prior to changing my MX records to Google will I have to do anything with the current emails that are set up on my domain? and the forwards I have set up?

    • Reply July 15, 2016 / 10:09 Ivan StefanovSiteGround Team

      Clayton, old emails will remain on your SiteGround account and in your mail clients if you've setup any. In terms of the forwarders, you'll need to recreate them at Google in order to work properly. Don't hesitate to post a support ticket if you have any doubts or in case you need further assistance.

  8. Reply July 25, 2016 / 15:17 MichaelSiteGround Team

    I configured my emails via google aps (i changed mx for my domain), so from now I can use my emails via gmail.
    The problem is that my shop cant send any confirmation email from now as mail server doesnt work...
    How to sort it out ?

    • Reply July 26, 2016 / 08:42 escalationsSiteGround Team

      Adjust the correct settings for email sending in your shop. You should be able to set it to use the remote google smtp. If you are a SiteGround customer you can post a ticket via our help desk so that out team can look at the actual configuration you have.

  9. Reply January 15, 2017 / 17:19 GoranSiteGround Team


    I have a google apps email for a website hosted on another hosting provider. I want to transfer my website to siteground (already signed up). If I do it, my old emails will still be there available in my email account(inbox, drafts, sent etc.)?

    • Reply January 17, 2017 / 12:02 escalationsSiteGround Team

      yes, you just need to ensure that the correct MX records are set at your new account with SiteGround before changing the name servers at your domain name registrar.

      • Reply January 19, 2017 / 00:20 GoranSiteGround Team

        Thank you. I will do as you explained.

  10. Reply February 14, 2017 / 18:06 nikki petersenSiteGround Team

    Hi -- I'm struggling with this. I set up my primary email when I set up my domain, then added another email. I just now set up G Suite, with the second email, and I'm adding the first one, but after changing the MX records, google and g suite say that the first email doesn't exist. What did I do wrong?

    • Reply February 21, 2017 / 15:56 Ivan AtanasovSiteGround Team

      When changing the MX records of a domain, it will direct all messages sent to this domain to the server defined by the new MX. If your email account is not created on the new server, mail providers will not be able to reach the inbox in question since the mail server will bounce the message to the sender.
      Also, please note that the MX records like all other DNS Zone modifications will require some time in order to propagate globally and take effect.

  11. Reply March 3, 2017 / 18:50 AmjadSiteGround Team

    Hi, suppose i have 100 mail accounts with siteground but i just want to change only 10 accounts to shift with google G suite. Now if i set google mx then will it change only the 10 accounts or affect all the 100 accounts

    • Reply March 7, 2017 / 15:07 Ivan AtanasovSiteGround Team

      Modifying the MX records of a domain name will impact all email accounts created under the domain.

      Example: You have,, third@domain.NET
      If you change the MX records for the and accounts (as well as all other created under will be affected. While third@domain.NET will not be since it is under a different domain.

  12. Reply March 31, 2017 / 15:03 nikki petersenSiteGround Team

    Hi -- I need to get my email back to SiteGround, after having it at Gmail for a couple months. How do I change it back? Change the MX and what else?

    • Reply April 5, 2017 / 05:38 Hristo PandjarovSiteGround Team

      Please, post a ticket in your Help Desk.

* (Required)