How to Use Microsoft 365 or Google Workspace Email with Your Domain

You can keep your website with us and use Microsoft 365 (Outlook) or Google Workspace (Gmail) for your business email. This guide shows you how to use Microsoft 365 or Google Workspace email with your domain by adding the right DNS records in cPanel and telling the Instant Access Internet Services server that mail is handled elsewhere.

Before you start

  • Your domain must use our nameservers (ns5.instantaccess.net and ns6.instantaccess.net, plus ns1/ns2.fanaticalhosting.com). If your DNS is hosted somewhere else, add the records there instead of in cPanel.
  • Sign up for Microsoft 365 or Google Workspace and add your domain in their admin console. They will give you a verification TXT record and the exact MX value to use. Always copy values from their admin console, as they can differ per account.
  • Create your users/mailboxes at Microsoft or Google before you change the MX record, so no mail bounces during the switch.
  • Email already stored in your cPanel mailboxes does not move automatically. Keep a copy (for example with an email app) or migrate it using Microsoft's or Google's migration tools.

Step 1: Verify your domain

Microsoft 365 and Google Workspace both ask you to prove you own the domain by adding a TXT record. Follow How to Add a TXT Record to Verify Your Domain (Google, Microsoft and More) to add it in cPanel, then click verify in their admin console.

Step 2: Change your MX records in the Zone Editor

  1. In cPanel, go to Domains > Zone Editor.
  2. Click Manage next to your domain.
  3. Use the filter buttons at the top to show only MX records. Note down the existing record (usually pointing to your own domain) in case you ever need to switch back.
  4. Click Add Record (or the arrow beside it and choose MX). Enter the values below, then click Save Record.
  5. Delete the old MX record that points to your domain by clicking Delete next to it. Old MX records left in place can cause mail to be split between two systems.
ServiceNamePriorityDestination
Google Workspaceexample.com.1smtp.google.com
Microsoft 365example.com.0The MX value shown in the Microsoft 365 admin center (it ends in mail.protection.outlook.com or mx.microsoft)

Older Google Workspace accounts may still use the five aspmx.l.google.com style records. Those still work, but new setups use the single smtp.google.com record.

Step 3: Set Email Routing to Remote Mail Exchanger

This is the step most people miss. If our server still thinks it handles your mail, messages sent from your website (contact forms, WordPress notifications) or from other customers on the same server will be delivered to the old local mailbox instead of Microsoft or Google.

  1. In cPanel, go to Email > Email Routing.
  2. Select your domain if you are asked to.
  3. Under Configure Email Routing, choose Remote Mail Exchanger.
  4. Click Change.

Automatically Detect Configuration usually picks Remote on its own once the MX record points elsewhere, but choosing Remote explicitly avoids surprises.

Step 4: Add autodiscover and SPF records

Microsoft 365

  • Autodiscover CNAME: Name autodiscover, pointing to the value Microsoft shows (normally autodiscover.outlook.com). If a CNAME or A record for autodiscover already exists in your zone, edit it rather than adding a second one. See How to Add a CNAME Record in cPanel.
  • SPF: include include:spf.protection.outlook.com.
  • Optional: the two DKIM CNAME records (selector1._domainkey and selector2._domainkey) Microsoft displays.

Google Workspace

  • SPF: include include:_spf.google.com.
  • Optional: DKIM. Generate the key in the Google Admin console and add it as a TXT record at the name Google gives you (usually google._domainkey).

Only one SPF record

Your domain can have only one SPF record. Don't add a second v=spf1 TXT record. Edit the existing one and add the new include, so your website can still send mail too. For example:

v=spf1 +a +mx include:spf.protection.outlook.com ~all

Keep any other parts already in the record (such as +ip4: entries) that cover mail sent from our server.

Step 5: Test

  • Wait for DNS to update. MX changes usually take effect within an hour or two but can take longer. See DNS Propagation: Why Domain Changes Take Time and How to Check.
  • Send a message from an outside account (such as a personal Gmail or Outlook.com address) to your new mailbox.
  • Submit your website's contact form and confirm the message arrives in Microsoft 365 or Google Workspace.

Common questions

Will this affect my website?

No. MX, autodiscover and SPF records only affect email. Your website's A record stays the same.

Should I delete my cPanel email accounts?

After you have copied any mail you want to keep, yes. Leaving old mailboxes in place can confuse email apps and uses disk space. See How to Delete an Email Account Safely in cPanel.

My contact form mail is still going to the old mailbox

Check that Email Routing is set to Remote Mail Exchanger and that the old MX record pointing to your domain was deleted.

Can I switch back to hosting email with you later?

Yes. Restore the original MX record (usually your domain name at priority 0), set Email Routing back to Local Mail Exchanger or Automatically Detect Configuration, and recreate your mailboxes.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • microsoft 365 mx record cpanel, google workspace mx record, use outlook email with my domain, cpanel email routing remote, change mx records cpanel, gmail with custom domain
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Our Nameservers: How to Point Your Domain to Your Hosting

To make your website and email work on your hosting account, your domain has to point to the...

DNS Propagation: Why Domain Changes Take Time and How to Check

When you change your nameservers or edit a DNS record, some people see the change right away...

How to Set Up Dynamic DNS in cPanel

Dynamic DNS (DDNS) lets you reach a device on a home or office connection, such as a camera, NAS...

Free SSL Certificates: How AutoSSL and SSL/TLS Status Work

Every hosting account includes free SSL certificates, so your website loads over HTTPS with a...

How to Install an SSL Certificate You Bought in cPanel

Your Instant Access Internet Services account already gets free SSL through AutoSSL, but if you...