Moving email to Microsoft 365 or Google: the DNS records people forget

Moving a domain to Microsoft 365 or Google Workspace often gets described as "changing the MX record". That step matters, but it isn't the whole job. The records people skip are the ones that keep mail authenticating, stop a second SPF record appearing, and help phones and desktops find the new service.

This guide lists the records Microsoft's and Google's own instructions ask you to add, the ones to remove, and the ones that are easy to leave half-finished. Have the values from your own admin centre in front of you, and don't copy anyone else's server names.

Before you change anything

Write down the DNS you have today: MX, TXT (especially SPF), CNAME, and any DKIM or DMARC records. You'll need the old values if you have to roll back.

List every service that sends email as the domain, not just staff mailboxes. Newsletters, invoicing, website forms and support tools usually keep sending through the move. They need to stay in SPF, and they should DKIM-sign as your domain.

Changes take time to be recognised. Google's MX guide allows up to 72 hours, and its DKIM guide says authentication can take up to 48 hours [1][5].

The records that route the mail

MX, and the old MX you must remove. Incoming mail follows the MX record. For Google Workspace, the current official value is a single MX record pointing at smtp.google.com with priority 1, and Google says to remove any other MX records, because old or wrong ones can stop email working properly. If you set up Google Workspace before 2023 you may still have the older "aspmx" records; Google says those still work and you don't need to change them if mail is flowing [1].

For Microsoft 365, the MX value is specific to your domain. It has usually looked like yourdomain-co-uk.mail.protection.outlook.com, and newer setups may be given a value ending in mx.microsoft instead. Take the exact value from the Microsoft 365 admin centre, then delete any other MX records so mail stops going to the old server [2][7].

Leave an old MX in place at an equal or better priority and some messages will keep going to the system you thought you'd left.

Autodiscover, on Microsoft 365. Microsoft also asks for a CNAME: autodiscover pointing at autodiscover.outlook.com [2]. It's easy to forget because mail still arrives without it, but Outlook and some phones then struggle to set themselves up. Google Workspace doesn't use this record.

Domain verification. Both platforms ask for a TXT record that proves you own the domain [7]. It doesn't route mail, but the move can't finish without it. Leave it in place unless your provider says you can remove it.

The records that prove the mail is yours

SPF: merge, don't add a second record. This is the mistake behind most "our mail started going to junk after the move" stories. Microsoft is direct about it: a domain can't have more than one SPF record, so if you already have one, add the Microsoft value to it rather than creating another [2].

For Microsoft 365 the usual entry is include:spf.protection.outlook.com, in one record alongside your other senders, ending in -all or ~all [3]. For Google Workspace, Google's example is v=spf1 include:_spf.google.com ~all [4]. If a newsletter or invoicing platform still sends as you, its include must stay in that same record.

DKIM: publishing the key isn't the same as switching it on. On Google Workspace you generate a key in the Admin console, add a TXT record (default name google._domainkey), then click Start authentication. Google warns not to start authentication before the key is in DNS [5].

On Microsoft 365, custom domains use two CNAME records, selector1._domainkey and selector2._domainkey, pointing at values Microsoft shows you for your domain. Once they're in DNS, enable DKIM signing for the domain in the Microsoft Defender portal [6]. A move that adds MX and SPF but never turns DKIM on will pass some checks and fail others, especially once DMARC or the big providers' sender rules come into play.

DMARC: add it, then tighten it later. Neither Microsoft nor Google publishes a DMARC record for your domain because you pointed your MX at them. You add a _dmarc TXT record yourself, with a policy of none, quarantine or reject [8][9].

If you already have DMARC at quarantine or reject, check that mail from the new platform, and from every other sender, is passing before you cut over. If you're new to DMARC, start at p=none with a reporting address, then move to quarantine and reject once the reports look clean. A strict policy plus a forgotten newsletter include is a reliable way to block your own mail in the week of the move.

Google and Yahoo also require a DMARC record (p=none is enough) once you send in bulk to their users, which is another reason to publish it as part of the move [10][11].

The leftovers people forget

Cutover checklist

Check your domain free

Once the move is done, check the result free, with no sign-up, at faultypacket.co.uk. It reads your public MX, SPF, DKIM, DMARC, MTA-STS, TLS-RPT, DNSSEC and CAA records and explains what it finds in plain English, including duplicate SPF records and DKIM that isn't switched on. If something needs fixing, the £24 Fix Pack gives you the exact records to add, in a safe order, and checks each one live once you've added it.

Related guides

Sources

  1. Google Workspace, "Set up MX records for Google Workspace": https://support.google.com/a/answer/16004259
  2. Microsoft, "Connect your DNS records at Cloudflare to Microsoft 365": https://learn.microsoft.com/en-gb/microsoft-365/admin/dns/create-dns-records-at-cloudflare
  3. Microsoft, "Set up SPF to identify valid email sources for your Microsoft 365 domain": https://learn.microsoft.com/en-gb/defender-office-365/email-authentication-spf-configure
  4. Google Workspace, "Help prevent spoofing and spam with SPF": https://support.google.com/a/answer/33786
  5. Google Workspace, "Set up DKIM": https://support.google.com/a/answer/174124
  6. Microsoft, "How to use DKIM for email in your custom domain": https://learn.microsoft.com/en-gb/defender-office-365/email-authentication-dkim-configure
  7. Microsoft, "Add a domain to Microsoft 365": https://learn.microsoft.com/en-gb/microsoft-365/admin/setup/add-domain
  8. Microsoft, "Set up DMARC to validate email in Microsoft 365": https://learn.microsoft.com/en-gb/defender-office-365/email-authentication-dmarc-configure
  9. Google Workspace, "Help prevent spoofing and spam with DMARC": https://support.google.com/a/answer/2466580
  10. Google, "Email sender guidelines": https://support.google.com/mail/answer/81126
  11. Yahoo Sender Hub, "Sender Best Practices": https://senders.yahooinc.com/best-practices/
  12. GOV.UK, "Protect domains that do not send email": https://www.gov.uk/guidance/protect-domains-that-dont-send-email