How to Move Email from cPanel to a New Hosting Provider
Changing hosting providers is common. Moving the website is usually straightforward. Moving email is not.
If your old hosting uses cPanel, your email is typically stored in per-user mailboxes on an IMAP server (usually Dovecot). When migrating to a new hosting provider, those mailboxes must be recreated and their content copied safely.
How cPanel Stores Email
- Dovecot for IMAP access
- Exim for SMTP delivery
- Mail stored in Maildir format per account
Each mailbox has its own credentials and folder structure. When switching hosting, you must recreate the mailboxes and copy all messages before cancelling the old service.
Before You Start
- IMAP server hostname (old and new hosting)
- IMAP port (usually 993 SSL/TLS)
- Full email address as username
- Password for each mailbox
- Estimated mailbox size
You can usually find IMAP settings in cPanel → Email Accounts → Connect Devices.
Method 1: Manual Migration Using an Email Client
- Add the old cPanel account to Thunderbird (IMAP).
- Add the new hosting account (IMAP).
- Drag folders manually from old to new.
- Wait until all messages finish uploading.
Limitations
- Slow for large mailboxes
- Your computer must stay online
- No reliable progress logging
- Risk of interruption
For mailboxes larger than 2–3 GB, this method can take many hours or even days.
Method 2: Direct IMAP Server-to-Server Migration
Instead of copying through a desktop client, an IMAP migration tool connects:
Old IMAP server → New IMAP server
Messages are transferred directly between servers.
Advantages
- Faster for large mailboxes
- Does not depend on your computer
- Preserves folder structure
- Reduced risk of interruption
If you prefer an automated server-to-server migration, you can use PostMaster to run a controlled one-time IMAP transfer.
Step-by-Step Migration Process
1. Create Mailboxes on the New Hosting
Recreate each email account in the new control panel. Use the same addresses if possible.
2. Verify IMAP Access
Typical secure settings:
Server: mail.yourdomain.com Port: 993 Encryption: SSL/TLS
Confirm you can log in and see folders before proceeding.
3. Check Mailbox Size
Ensure the new hosting plan allows sufficient storage. Large mailboxes (>5 GB) may require more time.
4. Run a Pre-Flight Test
Always confirm IMAP connectivity and credentials before starting full migration.
5. Start Migration
- Keep the old hosting active
- Do not change MX records yet
- Avoid structural changes during transfer
6. Verify Message Counts
Compare folder sizes and message counts after completion. Check important folders like Sent and custom folders.
7. Update MX Records
Only after verification:
- Change MX records to the new provider
- Allow DNS propagation (up to 24 hours)
- Monitor incoming email
Keep the old hosting active for several days as a safety window.
Common Problems During cPanel Email Migration
Wrong IMAP Port
Secure IMAP usually uses port 993. Port 143 may be blocked.
Firewall Restrictions
Some hosting providers block outbound IMAP connections.
Password Mismatch
Even one incorrect password will stop migration. Always test login first.
Large Mailboxes Timing Out
Desktop clients may timeout on large mailboxes. Server-to-server transfer reduces this risk.
Frequently Asked Questions
Does cPanel provide built-in email migration?
No. cPanel manages mailboxes but does not provide automated server-to-server migration.
What is the safest way to move email to new hosting?
Using direct IMAP server-to-server migration while keeping old hosting active until verification.
Can I change MX records before migration?
No. Change MX only after confirming all messages are transferred.