Founder price · 100 spots leftReserve

[ Guide ]

How to migrate email from Google Workspace without downtime

Leave Google Workspace without losing mail: lower TTLs, copy mailboxes over IMAP, switch MX, re-sync, and keep your domain. Step by step, with commands.

· 6 min read

[ In short ]

  • Your domain is yours: leaving Google Workspace means moving DNS records, not changing addresses.
  • Lower the MX TTL a day ahead, set up the new mailboxes, copy mail over IMAP, then switch MX in one go.
  • Gmail allows 2,500 MB of IMAP download per user per day, so start copying large mailboxes days before the switch.
  • Keep Workspace running for a week after the switch and sync again to catch mail delivered late to Google.
  • Export with Google’s Data Export tool before you cancel: after cancellation the data is deleted.

01Migrating from Google Workspace: the plan

A no-downtime move from Google Workspace has six steps: lower the TTL of your MX records, create the mailboxes at the new provider, copy existing mail over IMAP, switch the MX records, sync again to catch stragglers, and only then cancel Workspace. Done in that order, no message is lost and nobody has to change their address.

  1. D − 2

    Lower the TTL of your MX records

    5 min, then wait one old TTL

    Set MX (and the records you will change) to 300 seconds. Resolvers keep the old value until the old TTL runs out, often 1 to 24 hours.

  2. D − 2

    Verify the domain and add DKIM, SPF, DMARC

    15 min, checks in minutes to hours

    Add the new provider’s ownership TXT, its DKIM records and its include in your one SPF record. Outgoing mail can work before incoming moves.

  3. D − 1

    Create every mailbox and alias

    10–60 min

    Include shared addresses (hello@, invoices@) and forwarding rules. A catch-all for the first days catches the ones you forgot.

  4. D − 1

    Copy existing mail over IMAP

    Hours to days per mailbox

    Newest first. Gmail allows about 2.5 GB of IMAP download per user per day, so a 10 GB mailbox needs about four days. Start early.

  5. D

    Switch MX to the new provider

    5 min, propagation up to 300 s

    Replace the old MX records; do not leave them at a higher number. Send a test from an outside account.

  6. D + 1 and D + 3

    Run a second sync

    10–30 min each

    Some senders cached the old MX and delivered there. A delta copy picks up what landed late. Keep the old accounts until it finds nothing.

  7. D + 7

    Raise the TTL and close the old accounts

    5 min

    Set the TTL back to 3,600 seconds or more. Cancel the old provider only after the last sync came back empty.

A typical switch for a 2–50 person team, counted from the day MX changes (D). The copy is the slow part.

For most small teams the hands-on work is an afternoon. The calendar time comes from waiting: for DNS caches to expire and for large mailboxes to copy within Google’s limits.

02Before you start: inventory and the domain

Make a list of what receives mail

  • Every user, with their primary address and their aliases (Admin console → Directory → Users).
  • Every group used as a shared address: sales@, hello@, jobs@. Groups are not mailboxes; decide whether each becomes a shared inbox or an alias at the new host.
  • Forwarding rules and routing in Admin console → Apps → Gmail, and any catch-all.
  • Everything else that sends as your domain: CRM, invoicing, newsletter, website forms. Their SPF includes and DKIM records stay.

Check where your domain is registered

Google Workspace hosts the mail; it is not necessarily your registrar. Look up your domain’s registrar with any RDAP or WHOIS service. If you bought it through Google, note that Google Domains registrations moved to Squarespace in 2023–2024, and domains bought through the Workspace sign-up flow are managed there too. Make sure you can log in to wherever the DNS is before you begin.

Workspace is more than mail. Drive files, Calendar and Contacts need their own export or move; this guide covers email, the part that cannot have a gap.

03Step 1: lower the TTL of your MX records

Check the current MX records and their TTL. A Workspace domain set up since 2023 has a single record; older ones have several aspmx records. Both work.

Current MX
dig MX example.com
;; ANSWER SECTION:
example.com.   3600   IN   MX   1 smtp.google.com.

Set the TTL of the MX records to 300 seconds. Resolvers holding the old value keep it until its old TTL runs out (3,600 seconds in the example, often up to 86,400 at some registrars), so do this at least one old TTL before the switch. A day ahead is a safe default.

04Step 2: set up the new provider before touching MX

  1. Add and verify the domain at the new provider (usually a TXT record).
  2. Create every mailbox, alias and shared address from your list. Add a catch-all for the first days if the provider offers one.
  3. Add the new provider’s DKIM records. Keep Google’s (google._domainkey by default) until Workspace no longer sends.
  4. Add the new provider to your one SPF record, next to Google, so both can send during the move.
SPF during and after
; during the move: both providers may send
example.com.  300  IN  TXT  "v=spf1 include:_spf.google.com include:spf.provider.example ~all"
; after Workspace is closed
example.com.  3600 IN  TXT  "v=spf1 include:spf.provider.example ~all"

Keep your DMARC record as it is. If it is at p=reject, check that the new provider signs with your domain before any mail goes out from it.

05Step 3: copy existing mail over IMAP

Most providers have an import tool that connects to Gmail for you; use it if it exists. Otherwise imapsync, an open-source tool used by many hosts, copies folder by folder and can run again without duplicating messages.

imapsync, Gmail as the source
imapsync \
  --host1 imap.gmail.com --user1 ana@example.com --password1 "app-password" \
  --host2 imap.provider.example --user2 ana@example.com --password2 "new-password" \
  --gmail1
  • Authentication. Since 14 March 2025 Google accepts only OAuth or app passwords for IMAP, not the account password. App passwords need 2-Step Verification on the account; your admin may have to allow them.
  • Labels are folders. Over IMAP each Gmail label appears as a folder, and the same message can sit in several. --gmail1 sets sensible defaults for Gmail as the source, including the folder handling and a speed limit.
  • The daily limit. Google allows 2,500 MB of IMAP download per user per day. A 10 GB mailbox takes about four days, so start large mailboxes first, newest mail first if your tool allows.
  • Alternatives. An admin can export all users with Google’s Data Export tool (mbox files), which some providers import directly.

06Step 4: switch MX

  1. Delete the Google MX records. Do not leave them at a higher number: senders would still deliver some mail to Google.
  2. Add the new provider’s MX records with a 300-second TTL.
  3. Check from outside your network: dig MX example.com @8.8.8.8 +short should show only the new hosts.
  4. Send a test from a personal account to each important address, and reply to it from the new mailbox.

Switch everyone at once. While the domain is still active in Workspace, Google delivers mail between its own users internally without looking at MX, so a message from a colleague still on Google never reaches the person who already moved.

07Step 5 and 6: sync again, then close Workspace

Some servers cached the old MX and keep delivering to Google for a while. Run the same imapsync command a day after the switch and again after three days; it copies only what is new. When a run finds nothing, you are done.

WhenDo this
D + 1, D + 3Delta sync from Google to the new mailboxes
D + 7Raise MX TTL to 3,600 s; remove Google from SPF and its DKIM record
Before cancellingExport with Data Export if you want an archive of Drive, Calendar and Contacts
CancelAdmin console → Billing → Subscriptions; on a fixed-term plan you pay the rest of the contract

After you cancel, Google deletes the users’ Workspace data and it cannot be restored. Export first.

Skein imports your Gmail history as part of setup, so its follow-up agent knows every open thread from the first day, and you can keep reading mail in the Gmail or Outlook app over IMAP. See how it looks in the demo. How it compares on features and price: Skein vs Google Workspace.

Questions

Can I keep my domain if I leave Google Workspace?
Yes. The domain is registered with a registrar, and Workspace only receives its mail because your MX records point to Google. Point them at the new provider and your addresses keep working. If you bought the domain through Google, it is now managed by Squarespace.
Will I lose emails when I switch MX records?
Not if you keep Workspace active for about a week and sync again after the switch. Some senders keep using the old MX until their cache expires; those messages land at Google and the second sync copies them over.
How long does it take to migrate from Google Workspace?
The work takes a few hours for a small team. Plan for a day of waiting after lowering the TTL, plus copy time: at 2,500 MB a day per user over IMAP, a mailbox of a few gigabytes copies in one or two days.
Does IMAP migration keep folders and read status?
Yes. IMAP tools copy folders (Gmail labels), dates and flags such as read and starred. A message with several labels may appear in several folders, depending on the tool and the destination.
What happens to my data when I cancel Google Workspace?
Google deletes your users’ Workspace data after cancellation and it cannot be restored. Accounts, groups and the organization remain until you delete the organization’s Google account. Export what you need with the Data Export tool first.

See Skein follow up for you

Business email on your own domain with an agent that follows up on every conversation. Hosted in the EU. Try the demo with sample mail, nothing to install.

[ Sources ]

  1. 01Google Workspace: set up MX records
  2. 02Google Workspace: Set up SPF
  3. 03Google Workspace: Gmail bandwidth limits
  4. 04Google Workspace: Transition from less secure apps to OAuth
  5. 05Google Workspace: Cancel Google Workspace
  6. 06Google: About the Squarespace purchase of Google Domains registrations
  7. 07imapsync: Gmail FAQ
  8. 08RFC 5321: SMTP, §5.1 Locating the target host

Facts about other products were checked on 5 Oct 2026; prices and plans change.

[ Read next ]