Moving to Google Workspace, Microsoft 365 or anything else ends with the same edit: replace the domain's MX records. The edit takes a minute. What takes planning is that the rest of the internet doesn't see it at once, and for a while some senders deliver to the new servers and some to the old ones. Handle that window and the move is invisible to the people writing to you.
TL;DR
- A day before, lower the MX TTL to 300 seconds, then wait at least the old TTL. Lowering it at the moment of the switch doesn't help.
- Create the mailboxes first, then swap the MX records in one change and update SPF (one record, add the new include). Microsoft and Google both tell you to remove the old MX records.
- Keep the old system receiving for 5 days. Cached records and senders' retry queues (RFC 5321: give up after "at least 4-5 days") keep some mail arriving there. Google says new MX records can take up to 72 hours to be recognised.
TTL explained: why changes aren't instant
DNS doesn't push changes. When a sending server looks up your MX records, its resolver keeps the answer for the record's TTL (time to live), in seconds, and doesn't ask again until it expires. Change your records halfway through that window and that resolver keeps using the old answer until the timer runs out. "Propagation" is simply every resolver's cache expiring on its own schedule.
A few rules from the standards that matter here:
- The TTL is set by you, per record set. It's an unsigned number from 0 up to 2,147,483,647 seconds (RFC 2181, section 8), and all records in one set (all your MX records) must share the same TTL (section 5.2). If your DNS panel lets you give them different TTLs, don't.
- "No record" is cached too. If a domain had no MX record and someone looked, that negative answer is cached for the lower of the SOA record's TTL and its minimum field (RFC 2308, section 3). For our domain that's 1,800 seconds. Adding MX records to a new domain can therefore take up to that long to show everywhere.
- The old TTL is the one that counts. A resolver that cached your record at 86,400 seconds (24 hours) an hour ago will keep it for 23 more hours, whatever you set now.
| TTL | Where you'll see it | Longest a cached old record survives |
|---|---|---|
300 | Cloudflare's "Auto" for DNS-only records; what we use on mailexchange.com | 5 minutes |
3600 | Microsoft's recommended TTL for the Microsoft 365 MX record | 1 hour |
86400 | A common registrar default | 24 hours |
Sources: Cloudflare TTL docs ("Auto" is 300 seconds; minimum 60 seconds on non-Enterprise plans) and Microsoft 365 DNS records (TTL 3600; "Exchange Online only supports TTL values less than 6 hours (21,600 seconds)"), both checked 2026-11-24. Google tells Workspace admins to use the registrar's default TTL and that "it can take up to 72 hours for the new MX records to be recognized" (Google Workspace admin help, checked 2026-11-24).
Before you touch DNS
Most lost mail during a migration has nothing to do with DNS timing. It's mail that arrived at the new provider for someone who didn't have a mailbox there yet. Microsoft puts this first in its own instructions: add users and set up mailboxes before updating the MX record, so mail "continues to work without interruption". Before the switch:
- Find out who really hosts your DNS. Run
dig NS yourdomain.com +short. Edit records there, not at the registrar's panel if the name servers point somewhere else. Editing a zone that isn't live is a classic way to "change" MX records with no effect. - Save the current records. Copy every MX, the SPF TXT record, DKIM selectors, the
_dmarcrecord and the TTLs. Check yours with our MX lookup and the authentication checker and keep the output. This is your rollback. - Verify the domain at the new provider and create every user, alias, group and shared mailbox. Catch-all or forwarding rules you relied on at the old provider need to exist at the new one too.
- Pick a quiet time, and tell anyone on the old system that new mail will start arriving elsewhere. As Microsoft notes, existing mail stays at the old host unless you migrate it.
The cutover, step by step
- Record what is there now. Save the current MX, SPF, DKIM and DMARC records and their TTLs, and confirm which name servers are authoritative with
dig NS. That copy is your rollback plan. - Lower the TTL and wait. Set the TTL of the existing MX records to 300 seconds, then wait at least as long as the old TTL (a day if it was 86400) so every cached copy now expires within five minutes.
- Prepare the new provider. Verify the domain with the new provider and create every user, alias and shared mailbox there before the switch, so mail that arrives has somewhere to go.
- Replace the MX records. Add the new provider's MX records exactly as its admin console shows them and delete the old ones, in one change. Don't leave old records at a higher priority unless you mean them as a fallback.
- Update SPF and DKIM. Add the new provider's include to your existing SPF record rather than creating a second one, and publish the new provider's DKIM key.
- Verify from outside. Query the authoritative server and public resolvers, send test messages from an outside account, and read the headers to confirm they arrived at the new provider.
- Keep the old system receiving. Leave the old mailboxes able to receive for at least five days: senders that queued mail before the switch can retry for four to five days. Collect or migrate anything that lands there.
- Raise the TTL again. Once mail is flowing and you won't roll back, set the TTL back to a normal value such as 3600 seconds and remove the old provider from SPF.
Here's what step 4 looks like for a move from a self-hosted server to Google Workspace, in zone-file form. Before, with the TTL already lowered in step 2:
acme.com. 300 IN MX 10 mail.acme.com.
acme.com. 300 IN MX 20 backup.acme-host.example.
After (Google's single record for new setups is smtp.google.com at priority 1):
acme.com. 300 IN MX 1 smtp.google.com.
And the SPF record, merged rather than duplicated, until the old server stops sending:
acme.com. 300 IN TXT "v=spf1 ip4:203.0.113.25 include:_spf.google.com ~all"
Microsoft gives the same instruction for SPF: if a record already exists, "don't create a new one", add the Microsoft 365 value to it so there is "a single SPF TXT record". Two SPF records make SPF fail with a permanent error (RFC 7208, section 4.5). Provider-specific values are on our Google Workspace and Microsoft 365 pages.
Propagation: what happens after you save
Within seconds, your authoritative name servers serve the new records. Check that first, directly, so a cache can't fool you:
$ dig NS acme.com +short
ns1.dns-host.example.
$ dig @ns1.dns-host.example. MX acme.com +norec +noall +answer
acme.com. 300 IN MX 1 smtp.google.com.
Then the public resolvers: dig @1.1.1.1 MX acme.com +short and dig @8.8.8.8 MX acme.com +short. If one still shows the old record, look at its TTL column. It counts down, and the number tells you how many seconds are left before that resolver asks again. The MX lookup asks Cloudflare and Google side by side and flags when they disagree.
Meanwhile, two kinds of mail still reach the old servers:
- Senders with the old record cached. Bounded by the old TTL. This is why step 2 exists: with 300 seconds, the window is five minutes; skip it and with 86,400 it's a day.
- Messages already in someone's retry queue. A sender that couldn't deliver earlier retries, by default at intervals of "at least 30 minutes" and for a give-up time of "at least 4-5 days" (RFC 5321, section 4.5.4.1). Most will look up MX again on retry and reach the new provider, but not all mail software does. Keeping the old system receiving for five days covers it.
Test with real messages from outside accounts (a Gmail address, an Outlook.com address, a colleague's company), not from inside the new provider, which may deliver internally without looking at MX at all. Then paste the received headers into the email header analyzer: the last Received hop should be the new provider.
Dual delivery and split delivery
You don't have to move everyone at once. Both big providers can route between two systems during a pilot:
- Dual delivery: every message goes to both systems. Google describes it as messages "delivered to a Gmail inbox and to your legacy, non-Gmail system". The server in your MX records is the primary; it delivers to its own mailboxes and forwards a copy to the secondary. Google recommends Gmail as primary but notes you "might use your legacy server as primary during a pilot or migration to Gmail" (Google: dual delivery, checked 2026-11-24).
- Split delivery: some users live on one system and some on the other; the primary forwards mail for users it doesn't host.
Either way the MX records point at one system only, the primary. The routing to the second system is configured in the providers' admin consoles, not in DNS. A second set of MX records for the other provider isn't dual delivery; it's a random split of incoming mail.
Rollback: plan it before you need it
If test mail doesn't arrive, or the new provider rejects real users, put the old MX records back from the copy you saved in step 1. With the TTL at 300 seconds, most senders follow within minutes. That fast exit is the main argument for keeping the TTL low until you're sure, and for not cancelling the old service on cutover day.
Signs you should roll back, or at least pause:
- Outside test messages bounce with "user unknown" (550 5.1.1): mailboxes or aliases are missing at the new provider.
- Messages vanish with no bounce: they're probably still reaching the old system through a cache or a leftover MX record.
- The new provider's console still says the domain isn't verified or mail isn't activated. Google's setup, for one, needs Gmail activated in the Admin console as a separate step.
Once the switch has held for a few days, raise the TTL (3600 is a sensible value), take the old provider out of SPF, turn on DKIM signing at the new provider and check that DMARC passes (what is DMARC?). The mistakes that most often break a cutover, from a missing trailing dot to a leftover record, are listed with their symptoms in common MX record errors.
If the migration also brings a contact list you plan to mail, from the old CRM or newsletter tool, verify it before the first send from the new setup. A fresh domain or provider has no reputation to absorb bounces. Mail Exchange plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains, and unknown results are refunded.
Common questions
How long does it take for an MX record change to take effect?
As long as the old record's TTL, counted from the last time each resolver cached it. With a 300-second TTL most senders switch within five minutes; with 86400 it can take a day. Google tells Workspace admins it can take up to 72 hours for new MX records to be recognised.
Will I lose email when I change MX records?
Not if both systems can receive during the switch. Senders with the old record cached keep delivering to the old servers until their cache expires, and messages queued before the change can be retried for days. Keep the old mailboxes working for at least five days and collect what arrives there.
Should I lower the TTL before changing MX records?
Yes. Lower it to around 300 seconds and wait at least the old TTL before the switch. Lowering it at the same moment as the change doesn't help, because resolvers keep the old record for as long as the old TTL said.
Can I keep my old MX records as a backup?
Only if the old server will still accept and forward mail for every address. Microsoft allows the old record to stay at a lower priority (a higher number) than the Microsoft 365 record, but any sender that can't reach the new host will deliver to the old one. Most migrations are cleaner when the old records are removed.
How do I roll back an MX change?
Put the old MX records back from the copy you saved before the change. With a 300-second TTL the rollback reaches most senders within minutes. That is the main reason to lower the TTL first and raise it only once you're sure.