How to Set Up MX Records for Your Email
MX records tell other mail servers where to deliver your domain's email. To use Google Workspace or Microsoft 365, save your current MX record and replace it on your domain's DNS tab in cPanel with their value. About 3 days later, ask us to make sure email routing is set to Remote Mail Exchanger. That setting is only for domains whose mailboxes are with another provider: it stops our server accepting their mail.
Applies to: cPanel Blue Arctic Shared Web Hosting (cPanel), with email at Blue Arctic, Google Workspace or Microsoft 365
On this page
An MX record (mail exchanger) tells other mail servers which server accepts email for your domain. This guide shows how to move your domain’s email to Google Workspace or Microsoft 365 while your website stays here, and how to move it back to Blue Arctic.
Note
These steps are for Shared Web Hosting. On Managed WordPress Hosting (which has no email) or a VPS, open a support ticket.
Step 1: Check and save your current MX records
- Log in to cPanel.
- Click Websites in the sidebar, click Manage next to your domain, and open the DNS tab. If your domain uses another company’s nameservers, make the MX changes in Step 2 at that company instead, then come back for Step 3. Can’t find the tab, or the buttons that edit and delete a record? See How to Add or Edit DNS Records in cPanel, or open a support ticket.
- Find the MX records in the list. Take a screenshot, or write down each one’s priority (lower numbers are tried first) and destination (the mail server), so you can put them back.
Warning
As soon as you save a new MX record, new email starts going to your new provider. Create your mailboxes there first. For up to 3 days, some senders’ mail can still go to our server. Keep checking your Blue Arctic mailbox in Webmail, and if someone says their message bounced, ask them to send it again. Email already there isn’t moved for you.
Step 2: Change the MX record
Google Workspace
- In Google Workspace, verify your domain and create your users’ mailboxes (see our Microsoft 365 and Google Workspace DNS guide).
- On the DNS tab, edit the existing MX record: set its priority to
1and its destination tosmtp.google.com, then save it. - Delete any other MX records.
- Add
include:_spf.google.comto your one SPF record instead of creating a second one. See How to Set Up SPF, DKIM and DMARC in cPanel. - In the Google Admin console, go to Menu > Account > Domains > Manage domains. Click Activate Gmail for your domain and follow the steps on screen.
- Go to Step 3.
Microsoft 365
- Add your domain to Microsoft 365 and verify it, then add your users (see our Microsoft 365 and Google Workspace DNS guide).
- In the Microsoft 365 admin center, select Show all, then Settings > Domains, your domain, DNS records, Manage DNS and Continue.
- Make sure Exchange and Exchange Online Protection is selected, then expand MX Records and copy the value. It’s unique to your domain.
- On the DNS tab in cPanel, edit the existing MX record: set its priority to
0, paste the Microsoft value as its destination, and save it. - Delete any other MX records.
- Add the other records Microsoft lists, such as the
autodiscoverCNAME. If a record namedautodiscoveris already there, open a support ticket before you change it. - Add
include:spf.protection.outlook.comto your one SPF record instead of creating a second one.
Step 3: Set email routing
Email routing tells our server whether to accept mail for your domain. This applies even if your DNS is elsewhere.
Warning
Remote Mail Exchanger is only for a domain whose mailboxes are with another provider. It makes our server refuse mail for the domain, so mailboxes at Blue Arctic would receive nothing. But if Local Mail Exchanger stays on while your mailboxes are elsewhere, emails from your website to your own address never reach your real inbox.
About 3 days after you change the MX record, once new mail has stopped arriving in your Blue Arctic mailbox, open a support ticket. Ask us to make sure your domain’s email routing is set to Remote Mail Exchanger. Asking earlier can bounce mail that is still on its way. If you never had mailboxes at Blue Arctic, ask straight away.
Move email back to Blue Arctic
- Make sure your mailboxes exist in cPanel, then ask us in a support ticket to set email routing to Local Mail Exchanger. Wait until that’s done.
- On the DNS tab (or at the company that runs your DNS), replace the outside MX records with the MX values you saved in Step 1. If you don’t have them, or you added an
autodiscoverrecord for Microsoft, ask us in a support ticket for the right values. Keep your Google or Microsoft mailboxes open for 3 more days: some mail still arrives there.
How to tell it worked
- Use a public DNS checker (search for “DNS propagation checker”) to look up your MX record. It should show the new value with nothing added after it. If your own domain is on the end, put a period after the mail server name in the MX record (
smtp.google.com.), or open a support ticket. - Send a test message from a different account, such as a personal address. It should arrive in the right mailbox.
- If your email is at Google or Microsoft, also test your website’s contact form once email routing is set (Step 3).
If a test doesn’t arrive, try again in a few hours (see How Long DNS Changes Take).
Troubleshooting
- Contact-form emails from your website never arrive: if your mailboxes are at Google or Microsoft, email routing is probably still set to Local Mail Exchanger. Have it changed to Remote Mail Exchanger (Step 3). If your mailboxes are at Blue Arctic, don’t change email routing: check your spam folder and open a support ticket.
- Email bounces after the change: check the mailbox exists at your new provider. To undo it, have routing set back to Local first, then put back the MX values you saved in Step 1.
Still need help?
Open a support ticket from the Client Portal at my.bluearctic.com. Include your domain, the email address affected, which email provider you use, the exact error text, a screenshot, and what you already tried. Never include a password.