To migrate email from cPanel to Google Workspace without losing messages, you need three steps: import your history via IMAP (or with Google's migration tool), update your domain's MX records, and verify that everything is routing correctly. The entire process takes one to four hours depending on how much email you have.
Google Workspace brings Drive, Meet, and Calendar integration that many businesses love. If your email is currently on cPanel and you want to make the switch, the good news is that you can import your entire history before flipping the MX records — so you won't lose a single message during the transition.
Before You Start: Pre-Migration Checklist
Before touching any settings, complete these steps:
- Confirm IMAP access in cPanel. Go to Email → Email Accounts and verify IMAP is enabled for each account you'll migrate.
- Note every mailbox's credentials. You'll need the username and password for each source account.
- Check your current MX TTL. If it's 3,600 (1 hour) or higher, lower it to 300 seconds at least 24 hours in advance so the MX change propagates quickly.
- Set up Google Workspace. Make sure your domain is verified in Google Admin Console and that all destination accounts are already created.
- Take a backup. Download a ZIP of mailboxes from cPanel (Backup) or export .mbox files from Roundcube before you begin.
Option A: Google's Official Migration Tool (Recommended)
Google Admin Console includes a Data Migration tool that connects directly to cPanel's IMAP server and copies messages in the background.
- In Google Admin Console, go to Account → Data Migration.
- Select Email as the data type.
- Choose Other email server (IMAP) as the source.
- Enter your cPanel IMAP server details:
- Server:
mail.yourdomain.com(or your hosting IP) - Port:
993with SSL - Source account username and password
- Server:
- Map each cPanel account to its corresponding Google Workspace account.
- Select a date range (or "All messages") and start the migration.
The tool runs in the background. You can keep using both systems while it finishes. For mailboxes of 5–10 GB, expect 30 minutes to 2 hours.
What Gets Migrated and What Doesn't
| Migrated | Not Migrated |
|---|---|
| Messages (inbox and sent) | Contacts and calendar events |
| Custom folders | Email signatures |
| Labels and read/unread status | Client-side filters and rules |
| Attachments | Auto-reply settings |
You can export contacts from cPanel in VCard format and import them into Google Contacts separately.
Option B: Manual IMAP Migration with a Desktop Client
If you prefer more control, or Google's tool isn't available on your plan, you can migrate using Thunderbird or Outlook.
- Open Thunderbird and add both accounts: the cPanel account (IMAP) and the Google Workspace account (IMAP).
- Wait for both accounts to fully sync.
- Select all folders in the cPanel account, right-click, and choose Copy to → Google Workspace account.
- Thunderbird copies messages folder by folder. For large mailboxes this can take several hours.
This method is slower but works even without access to Google Admin Console. At elenlace.com — email hosting specialists — we can handle the full migration for you if you'd rather delegate to a technical team.
Changing MX Records: The Critical Moment
The MX change is what redirects new incoming mail to Google. Only do this after your history is fully migrated.
- Log in to your domain's DNS panel (cPanel DNS Zone Editor, or wherever you manage records).
- Delete the current MX records (which point to your cPanel server).
- Add Google Workspace's MX records:
ASPMX.L.GOOGLE.COM— priority 1ALT1.ASPMX.L.GOOGLE.COM— priority 5ALT2.ASPMX.L.GOOGLE.COM— priority 5ALT3.ASPMX.L.GOOGLE.COM— priority 10ALT4.ASPMX.L.GOOGLE.COM— priority 10
- Save and wait for propagation. With a TTL of 300 seconds, this takes 5–30 minutes.
During propagation, messages may arrive at either server. Keep cPanel active for at least 48 hours after the change and continue checking that mailbox.
Post-Migration Verification
Before calling the migration complete, confirm these items:
- Send a test email from an external account (Gmail, Outlook) to your new address and verify it arrives in Google Workspace.
- Reply from Google Workspace and confirm the recipient receives it correctly.
- Check Google Admin Console to ensure the data migration shows Completed status for each account.
- Verify your updated SPF record: it must include
include:_spf.google.com. - Enable DKIM from Google Admin Console (Apps → Google Workspace → Gmail → Authenticate email).
- Set up DMARC with
p=noneinitially to monitor without rejecting.
Browse more email setup and configuration guides in our business email section, including step-by-step walkthroughs for SPF, DKIM, and DMARC.
Key Takeaways
- Migrate your history first, then change the MX records — this guarantees zero message loss during the cutover.
- The Google Admin Console Data Migration tool is the simplest option for business accounts.
- Lower your MX TTL to 300 seconds at least 24 hours before the cutover to speed up propagation.
- Keep your cPanel server active for 48 hours after the MX change in case any mail was delivered to the old server during DNS propagation.
- After the switch, activate DKIM and SPF for Google Workspace through Admin Console.
- Contacts and calendars require a separate migration (export/import via CSV or VCard).
If you'd rather have a technical team manage the whole migration so you don't have to worry about the details, reach out to elenlace.com and we'll handle it from start to finish.
FAQ
Can I lose emails during the migration?
If you follow the correct order — import history, then change MX — the risk is minimal. During MX propagation, keep both servers active and check the cPanel mailbox for the first 48 hours to catch any messages delivered before the DNS change fully propagated.
How long does the migration take?
It depends on total email volume. A 1 GB mailbox typically takes 15–30 minutes with Google's tool. If you have multiple accounts with several GB each, the background process can run for 2–8 hours in total.
Do I need to buy Google Workspace before migrating?
Yes. You must have Google Workspace accounts created and your domain verified in Google Admin Console before starting the migration. Google offers a 14-day free trial so you can complete the migration and confirm everything works before your first billing date.
What happens to email that arrives during the migration?
While your MX record still points to cPanel, all new mail goes there. Once you update the MX to Google, new mail flows directly to Google Workspace. That's why it's important to leave cPanel active for 48 hours — any messages routed to the old server during DNS propagation will still be waiting for you there.
Useful resources
Other providers and guides worth comparing: