The High Stakes of Email Migration
Migrating a company's website to a new server is relatively simple. If the site is down for 10 minutes during the DNS cutover, it is an annoyance, but rarely catastrophic.
Migrating an enterprise email infrastructure—say, moving 500 employees from a legacy on-premise Microsoft Exchange server to a cloud-hosted Google Workspace or Microsoft 365 environment—is vastly more dangerous.
If you mishandle the MX record cutover, incoming emails (invoices, client contracts, legal notices) won't just be delayed; they will bounce, or worse, vanish into a black hole. In this guide, I will outline the exact DNS and routing strategy required to execute a zero-downtime, zero-data-loss email migration.
The Problem: DNS Propagation Delays
The core challenge of an email migration is DNS caching. As explained in our TTL Propagation Guide, the global internet caches your DNS records.
If your current MX records point to your legacy Exchange server with a Time-To-Live (TTL) of 24 hours, and you suddenly change them to point to Google Workspace, you have created a "split-brain" scenario.
For the next 24 hours:
- ISP "A" whose cache just expired will look up the new records and deliver emails to Google Workspace.
- ISP "B" who has the old records cached will continue attempting to deliver emails to your legacy Exchange server.
If you shut down the old Exchange server immediately, all mail from ISP "B" will bounce. If you leave it running, you now have emails actively arriving in two completely disconnected systems, creating a nightmare for users trying to find their messages.
The Zero-Downtime Migration Strategy
To avoid this, we must use a combination of DNS TTL manipulation and application-level dual delivery.
Phase 1: The TTL Step-Down (48 Hours Prior)
You must force the global internet to stop caching your MX records.
- Log into your current DNS provider.
- Locate your active MX records.
- Change the TTL value from the default (often 86400 seconds / 24 hours) to a highly aggressive 300 seconds (5 minutes). Do not change the actual mail server destinations yet.
- Save the records and wait a full 24 hours.
By waiting out the old TTL, you guarantee that every mail server in the world is now only caching your MX records in 5-minute increments.
Phase 2: Dual Delivery Setup (Application Layer)
Before you flip the switch, you need to link the old and new systems. Most enterprise providers (Google Workspace, Microsoft 365) support a feature called Dual Delivery or Split Delivery.
- You configure the new system (e.g., Google Workspace) to be the master.
- You set up a routing rule inside Google: "If an email arrives for a user, put a copy in their Google inbox, and then instantly forward a duplicate copy to the legacy Exchange server's raw IP address."
This ensures that once emails start hitting the new cloud system, the old system remains perfectly synchronized.
Phase 3: The MX Cutover (Execution Day)
The weekend of the migration has arrived. Because of your Phase 1 prep work, you have absolute control over the DNS.
- Create your new SPF and DKIM TXT records in DNS to authorize the new cloud provider. (Failure to do this will cause the new system to send mail straight to spam).
- Update your MX records. Delete the legacy Exchange records, and input the new Google/Microsoft records. Keep the TTL at 300 seconds.
Because the TTL is 5 minutes, the global cutover happens incredibly fast. Within 10 to 15 minutes, 99% of global mail flow will redirect from the old server to the new cloud servers.
Because of Phase 2 (Dual Delivery), any mail hitting the new cloud system is also forwarded to the old system. Users can continue to work out of their old Outlook clients on Friday afternoon while the cloud populates behind the scenes.
Phase 4: Verification and Decommissioning
- Use our MX Lookup Tool to query authoritative nameservers and confirm the old records are completely gone from the zone.
- Use our DNS Propagation Checker to ensure the new Google/Microsoft MX records have resolved across global geographic nodes.
- Over the weekend, perform the massive IMAP/PST data migration to sync historical folders into the cloud.
- On Monday morning, point users to the new cloud login. Once everyone is confirmed working, sever the dual-delivery routing rule and safely power down the legacy Exchange server.
- Log back into DNS and raise the MX record TTL back to 3600 seconds or higher to reduce query load.
By meticulously manipulating TTLs and leveraging dual-delivery routing, you remove the danger from email migrations, ensuring uninterrupted communication and pristine data integrity.
