Knowledgebase

How to migrate cPanel email to Google Workspace (Data Migration)

Moving from hosting email to Google Workspace? You do not have to lose your old messages. This guide shows you how to migrate cPanel email to Google Workspace using Google's built-in Data Migration service over IMAP, in the right order so no mail is lost.

Before you start

  • Google Workspace is active and your domain is verified.
  • Every person has a Google Workspace user (see How to create users, email aliases and groups in Google Workspace).
  • You have the password of each old cPanel mailbox. If you do not, reset it in cPanel under Email Accounts.
  • The cPanel hosting account stays active until the migration is finished and checked.
Important: Do not delete the old mailboxes or cancel the hosting email until every user confirms their messages are in Gmail.

Step 1: Plan the order

  1. Create the users in Google Workspace.
  2. Run the first migration while mail still arrives at cPanel.
  3. Switch the MX records to Google (see How to set up Google Workspace MX, SPF and DKIM records).
  4. Run the migration again to copy messages that arrived during the switch.

Step 2: Set up the migration source

  1. Sign in to admin.google.com as a super admin.
  2. Open the Data migration tool (in the Data section of the Admin console, under data import and export).
  3. Choose to migrate email and select a generic IMAP server (other IMAP) as the source.
  4. Enter the IMAP server: mail.yourdomain.com (or the server host name shown in cPanel Connect Devices), port 993 with SSL.
  5. Choose the start date and any folders to exclude, such as Spam and Trash.

Step 3: Add the users to migrate

  1. Add each user one by one: the old cPanel email address and its password, and the Google Workspace user it should go into.
  2. For many users, use the CSV upload option if it is offered.
  3. Start the migration.

Step 4: Monitor and check

  1. Watch the progress in the migration page. Large mailboxes can take hours.
  2. When it finishes, open Gmail for a few users and check that folders appear as labels and old messages are there.
  3. Review any errors shown in the report, fix them (usually wrong passwords) and retry.

Step 5: Switch mail and finish

  1. Change MX to Google and set cPanel Email Routing to Remote Mail Exchanger.
  2. Run the migration again for the same users to pick up the last messages.
  3. Update devices: remove the old account from phones and Outlook and add the Google account.
  4. Keep the old mailboxes for a safe period, then remove them.

Common problems

  • Authentication error: wrong password or the full email address was not used as the user name.
  • Connection error: check the server name and port 993. Too many failed attempts can cause a temporary security block on the server; contact support.
  • Some folders are missing: check the excluded folders setting and the error report.
  • Contacts and calendars are not moved: IMAP moves email only. Export contacts from your old email program and import them into Google Contacts.

Frequently asked questions

Will users notice downtime?

If you follow the order above, mail keeps arriving the whole time; only the inbox location changes.

Can EgWeb do the migration for me?

Yes, we can help with Google Workspace bought through us. Open a ticket or see our Google Workspace page.

What about mail stored only on a PC (POP3)?

Messages downloaded by POP3 and deleted from the server are not on cPanel, so the IMAP migration cannot see them. They must be imported from the PC.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • google workspace migration, data migration, imap migration, cpanel email, move email to gmail

Was this answer helpful?

0 Users Found This Useful