Documentation

Help for MailMigrata and the whole suite

Migrate a cPanel mailbox to Gmail

This article explains how to copy one cPanel IMAP mailbox to Gmail with MailMigrata.


Limitations

  • MailMigrata copies IMAP email only: messages, folders, and attachments the destination accepts. Calendars, contacts, and files need CalendarMigrata, ContactMigrata, and FileMigrata.
  • MailMigrata does not delete anything from the source unless you choose to.
  • Each job copies one mailbox. Do not start a second job into the same destination folders; it creates duplicates. Resume the first job instead.
  • Forwarders and filters are not part of IMAP and are not copied. Recreate them in Gmail.
  • Each cPanel mailbox on the hosting plan is a separate job. A catch-all or default address that only forwards is not a mailbox.

Prerequisites

  • The mailbox password from cPanel → Email Accounts. The cPanel or WHM login does not work.
  • The IMAP host from Email Accounts → Connect Devices → Mail Client Manual Settings, often mail.yourdomain.com or the server host name. Do not use the :2096 webmail URL.
  • A Gmail address with IMAP on, and an app password or Connect with Google.

Folder mapping

  • Inbox → Gmail Inbox.
  • Custom folders → Gmail labels.
  • Do not select Gmail All Mail; it duplicates every message.

Steps

  1. Connect the cPanel mailbox (Connect cPanel / WHM mailbox IMAP). The username is usually the full email address.
  2. Connect Gmail. See Connect Gmail.
  3. In MailMigrata, start a new migration, validate both sides, and select folders.
  4. Optional: set a date range.
  5. Start the job. You can keep using mail during the copy.
  6. To keep the same address, change MX to Google after the copy and after you check a few folders.
  7. Check Inbox and one custom folder in Gmail.

Troubleshooting

  • LOGIN failed: The mailbox password is wrong. Reset it in Email Accounts, not the cPanel user password, and enter it in MailMigrata.
  • Connection times out: The host is wrong, usually a :2096 or webmail URL. Use the Incoming Server from Connect Devices, port 993 with SSL.

Related articles