Migrate an IMAP / cPanel Mailbox to Google Workspace
Your email still runs on an IMAP mailbox that came bundled with your cPanel hosting, and you want to move to Google Workspace for Gmail, Drive, Calendar and Meet. It's a very common, well-understood switch: Google provides a dedicated tool that pulls in the IMAP history, and a well-sequenced DNS change avoids any mail interruption.
What gets migrated — and why move to Google Workspace
On an IMAP mailbox hosted in cPanel, each account holds a history you must preserve:
- Email: inbox, custom folders, sent, drafts and trash, with their hierarchy.
- Contacts: the address book stored in the webmail (Roundcube, Horde).
- Calendars: calendars kept in the webmail, if any.
- Files: documents scattered across machines or a share, to be gathered in Google Drive or a shared drive.
People move to Google Workspace for Gmail's reliability, instant search, Drive storage, shared calendars and Meet — all administered from a single console, without depending on shared hosting.
Step 1 — Audit and inventory
Before touching DNS, take stock:
- List the accounts to migrate and their aliases or forwards defined in cPanel.
- Record the size of each mailbox: it drives duration and the risk of throttling.
- Note the IMAP settings of the cPanel server (hostname like mail.yourdomain.com, port 993 over SSL) and a valid password per account.
- Check the DNS zone: current MX records, SPF, TTL. Lower the MX TTL to 300 seconds several days before the cutover.
Step 2 — Provision Google Workspace
Create the Google Workspace subscription, add your domain and verify ownership (Google supplies a TXT record), then create users with the same addresses as in cPanel. The Gmail mailboxes are then ready but empty: at this point, don't change the MX — mail keeps arriving at cPanel while you prepare the transfer.
Step 3 — Migrate email with the Data Migration Service
Google offers the data migration tool (Data Migration Service, DMS) built into the Admin console, designed exactly for this case:
- Choose the IMAP source and enter the cPanel server (hostname, port 993, SSL).
- Provide a mapping file linking each source address to the Google Workspace user and its password.
- Set a start date to migrate only the useful history, then run: DMS copies email in the background, without disturbing the mailbox still active on cPanel.
For a single mailbox, there's an alternative: in Gmail settings, "Import mail and contacts" can also pull in an external IMAP account. Note that IMAP DMS migrates email but not generic contacts or calendars: those are handled separately.
The rule for a zero-downtime switch: copy the whole history while the old mailbox is running, and only change the MX once the copy is complete.
Step 4 — Contacts, calendars and files
Export webmail contacts as CSV/vCard and import them into Google Contacts; export calendars as .ics and import them into Google Calendar. For files, install Google Drive for desktop and drop documents into My Drive (personal data) or a shared drive (team data); sync handles the upload and keeps the folder tree.
Step 5 — Cut over DNS/MX with no downtime
Once the initial copy is done, at your DNS manager (often cPanel itself, or the registrar) replace the records with Google's:
- MX to
SMTP.GOOGLE.COM(Google Workspace's simplified MX record). - SPF:
v=spf1 include:_spf.google.com ~all. - DKIM: generate the key in the Admin console and publish the matching TXT record.
With the lowered TTL, propagation is fast. During the short coexistence phase, some mail may still land at cPanel: run a DMS delta sync to pull in messages received in the meantime.
Step 6 — Verify and set up clients
Check that all folders and labels are present, send a test email both ways, then reconfigure clients: on Outlook, replace the old IMAP account with the Google one (via IMAP or Google Workspace Sync); on mobile, add the Google account and remove the old one. Recreate signatures, filters and labels in Gmail.
Common pitfalls
- Rate limits: shared cPanel servers cap simultaneous IMAP connections; DMS may slow down, which is normal — let it finish.
- Duplicates: don't rerun a full migration after the cutover, only a delta.
- Nested folders: some webmails use unusual folder separators; check that the tree is rebuilt correctly.
- Sharing permissions: folder shares don't carry over; recreate them via shared drives.
- Cancelling too early: only delete the cPanel mailboxes after several days of confirmed operation on Google Workspace.
How much it costs: Yuna7 vs an IT contractor
Having a contractor migrate IMAP / cPanel to Google Workspace often costs several hundred dollars, with quotes and lead times. Yuna7 automates the switch and you only pay for what's actually used — you can even try it free.
IT contractor / technician
- Quote, scheduling, on-site
- Several days' lead time
- Billed hourly, variable outcome
With Yuna7
- AI-guided, automated migration
- Launched in minutes
- You only pay for what's used
Let Yuna7 migrate IMAP / cPanel to Google Workspace for you
Describe your migration in one sentence — "migrate my cPanel mailboxes to Google Workspace" — and the AI handles the rest: it audits the IMAP accounts and DNS, provisions the users, runs the Data Migration Service, imports contacts, calendars and files into Drive, cuts the MX over at the right moment and checks integrity. You only approve the sensitive steps. Far cheaper than a technician.