How to Backup and Restore Email in cPanel tutorial - click to play Click to play video

How to Backup and Restore Email in cPanel

VideoShala 973 subscribers
Subscribe
YouTube
Video guide #cPanelEmail #Roundcube #ImapBackup

A 7-minute video guide covering both sides of the cPanel email workflow: backing up your mailbox to local PST, EML or MBOX files, and restoring those files back to the same mailbox or a different IMAP destination. Uses 4n6 Email Converter, which handles both phases in one tool.

Published: Updated:
Video Transcript

Hello and welcome. This tutorial covers both backup and restore of cPanel hosted email using 4n6 Email Converter. cPanel email is what small businesses and freelancers use when they buy web hosting and set up addresses like contact at their domain. Unlike Gmail or Outlook.com, these accounts live on the hosting provider's server, and if the hosting plan lapses or gets cancelled, the mail disappears with it.

First, the backup. Install 4n6 Email Converter on Windows and launch it. Click Open and pick Email Accounts. Enter your cPanel email credentials: the full email address, your mailbox password, the IMAP server which is usually mail.yourdomain.com, and port 993 for SSL. The tool connects and loads your Inbox, Sent, Drafts and any custom folders created in Roundcube.

Click any message to preview it. Click Export and pick PST for Outlook, EML for individual files, or MBOX for Thunderbird. Browse and set a destination folder on your hard drive. Click Save to start the backup. Wait for the progress bar to finish.

Now the restore procedure. Click Open again but this time pick Outlook data files (PST or OST). Browse to your saved PST backup. The tool loads all messages from the file into a preview pane. Review them to confirm the backup is intact.

Click Export and pick IMAP as the saving option. Select the folder you want the emails restored into. Enter the target IMAP server credentials: this can be the same cPanel account you backed up from, a new cPanel account on a different host, or even Gmail or Outlook.com. Click Save. The tool uploads the messages to the target IMAP server one by one.

When done, log into webmail or your email client on the restore target and you will see all your messages back. This combined workflow is ideal for migrating hosting providers, recovering after a server crash, or moving business email to a new domain. Thanks for watching and please subscribe.

Tested on Windows 11 · 4n6 Email Converter v8.1 · cPanel 118 + Dovecot 2.3 · April 2026

Why cPanel Email Needs Both Backup AND Restore

cPanel is the control panel that powers a huge chunk of shared web hosting globally, including Indian hosts like Hostinger, BigRock, GoDaddy, HostGator, Bluehost and thousands of smaller providers. When you buy a hosting plan and set up email addresses like contact@yourbusiness.com or accounts@yourdomain.in, those mailboxes live on the hosting server and are accessed through the Roundcube webmail interface or via IMAP clients. This tight coupling to the hosting account is what makes cPanel email fragile: if your hosting plan lapses, your domain expires, or the host has an outage, your mail can vanish overnight.

Unlike the consumer webmail services we covered in earlier guides like Hotmail, Outlook.com and Yahoo Mail, cPanel mailboxes have no big corporation running redundant global data centres to protect them. A disk failure on the hosting server, or a billing dispute that locks you out of cPanel, can destroy years of business email in minutes. This is why a proper cPanel workflow needs both backup AND restore: the ability to pull emails off the server AND push them back onto a new server when you switch hosts.

The 4n6 Email Converter handles both phases in one tool. The backup phase reads from the cPanel IMAP endpoint and writes PST, EML or MBOX to your local disk. The restore phase reads from that local file and uploads via IMAP to any destination: the same cPanel account recovered after a disaster, a different cPanel account when you switch hosting providers, or even Gmail or Zoho Mail if you are moving away from self-hosted email. If you want a broader tool that handles Gmail, Yahoo and Outlook in one dashboard, see the Email Backup Wizard tutorial.

cPanel Email Technical Reference

Most cPanel hosts use the same standard mail-server stack of Dovecot for IMAP/POP3 and Exim for SMTP. The port numbers and encryption options are essentially universal across cPanel installations.

SettingValue
IMAP servermail.yourdomain.com (replace yourdomain.com with your actual domain)
IMAP port (SSL/TLS)993 (recommended). Plain non-SSL is 143 (avoid on public networks)
POP3 port (SSL/TLS)995 (avoid unless you have a specific POP3 requirement, because POP3 pulls emails off the server and breaks multi-device sync)
SMTP port (outgoing)465 (SSL) or 587 (STARTTLS). Use 587 if your network blocks 465 (many Indian ISPs do)
UsernameFull email address (e.g. contact@yourdomain.com), not just the prefix
PasswordThe mailbox password, not your cPanel login password (these are separate)
AuthenticationNormal password. cPanel rarely uses 2FA on IMAP. No app password concept here
Webmail accessUsually https://yourdomain.com/webmail or https://mail.yourdomain.com, loads Roundcube by default
Mailbox quotaSet in cPanel's Email Accounts page. Typical plans: 1 GB, 5 GB, or "unlimited" (actually capped by the plan's total disk quota)
Operating system4n6 Email Converter runs on Windows 11, 10, 8.1, 8, 7, and Windows Server 2019, 2016, 2012 R2. macOS requires a SysTools equivalent
Phase 1 of 2

📥 Backup: cPanel Mailbox → Local File

Steps 1-4: Back Up the cPanel Mailbox

  1. Download 4n6 Email Converter from the official vendor site and install it on your Windows PC. Launch the application. Click Open in the top menu, then pick Email Accounts from the dropdown. This starts the backup phase.
  2. Enter your cPanel email credentials: full email address, mailbox password (not cPanel login password, those are different), IMAP server (usually mail.yourdomain.com), and port 993 for SSL. The tool connects via IMAPS and loads your Inbox, Sent, Drafts and any custom folders you created in Roundcube.
  3. Click any email to preview its body, attachments, headers or raw view. Click Export in the menu and pick your output format. PST for importing into Outlook desktop. EML for individual message files. MBOX for Thunderbird or Apple Mail. Click Browse and set a destination folder on your hard drive like D:\cpanel-backup\contact-2026-04.
  4. Click Save. The tool connects folder by folder and writes each email to the destination path with a progress bar. A 2 GB cPanel mailbox takes roughly 12-15 minutes on a 100 Mbps connection. When finished, the backup phase is complete. You now have a portable offline copy of your mailbox that is independent of your hosting provider.
Phase 2 of 2

📤 Restore: Local File → Any IMAP Target

Steps 5-8: Restore the Backup to a Mailbox

  1. Back in the 4n6 Email Converter, click Open again but this time pick Email Data Files, then Outlook OST/PST files. Browse to the PST you created in step 3. The tool parses the file and loads every message into a preview pane. Review to confirm the backup is intact and readable.
  2. Click Export in the PST preview. This time pick IMAP as the saving option (not PST or EML). A folder selection dialog appears. Pick the folder or folders in your PST you want to upload to the restore target. Select all folders to restore the entire mailbox, or pick specific folders for partial restore.
  3. Enter the target IMAP credentials: email address, password, IMAP hostname, port. The target can be the same cPanel account after you have rebuilt it, a new cPanel account on a different hosting provider (for migrations), or even Gmail, Outlook.com, Zoho or any IMAP server. Gmail and Outlook.com will need an app password here if 2FA is enabled.
  4. Click Save. The tool uploads messages one by one to the target via IMAP APPEND commands, preserving folder structure. When the progress bar finishes, log into webmail (Roundcube, Gmail web, or whatever the target uses) and verify every folder and message appears correctly. That's it. Restore complete.

Common Errors and Fixes (Both Phases)

Error or symptomCause and fix
"Could not connect to mail.yourdomain.com" Either your domain's MX or A record is wrong, or the hosting firewall is blocking your IP. Log into cPanel, go to Email Accounts, click Configure Mail Client, and copy the exact IMAP hostname, port and SSL settings shown there. Also temporarily disable Windows Defender Firewall to rule out local blocking.
"SSL/TLS negotiation failed" or "certificate error" The hosting server's SSL certificate has expired, is self-signed, or does not cover the hostname you are using. Ask your host to renew the certificate, or switch to the generic host-provided hostname (often yourhostname.hostingprovider.com) which has a valid cert.
"Invalid login" despite correct password cPanel mailbox password, not cPanel login password. These are separate. Go to cPanel → Email Accounts → Manage for the mailbox, and reset the password. Paste the new one into the 4n6 tool. Watch out for special characters that may not copy-paste cleanly.
"Mailbox quota exceeded" Your cPanel mailbox hit its storage cap during a restore. Log into cPanel → Email Accounts and increase the quota for the mailbox, or clear old messages from the target before restoring. Some hosts cap mailboxes at 1 GB by default on shared plans.
"IMAP APPEND failed: message too large" A specific email has attachments over Dovecot's default 35 MB per-message limit. Skip that folder for the initial restore, finish the rest, then handle the large-attachment messages individually by saving the EMLs and re-uploading them through webmail.
Restore uploads but Roundcube shows no emails Usually a Roundcube cache issue, not a real problem. Log out of Roundcube, clear your browser cache, log back in. Also check the mailbox in another IMAP client like Thunderbird to confirm messages actually reached the server.
Backup is slow, < 5 emails per second Indian shared hosts frequently throttle IMAP bandwidth during peak hours. Try backing up at night (Indian time matches US off-peak). Also check if your host limits concurrent IMAP connections, the default is often 4 per mailbox.
"Folder Sent not found" during restore cPanel/Dovecot uses "Sent" by default but some setups use "Sent Items" or "Sent Mail". The tool creates folders that don't exist, so this error usually means a rare capital-letter or namespace mismatch. Rename the source PST folder to match the target convention and re-run.

Real-World Scenarios Where This Workflow Saves You

ScenarioHow backup+restore solves it
Switching hosting providers Back up from old provider's cPanel, change your domain's MX records to the new host, create matching email addresses on the new cPanel, then restore the backup to the new IMAP endpoint. Downtime: under an hour if you plan the MX switch carefully.
Hosting plan expires unexpectedly If you renew late and the host has already deleted the mailbox, you lose everything. A quarterly backup means even in this worst case you lose at most 3 months of mail, not the entire history.
Server disk failure at hosting provider Shared hosting outages happen. Even hosts with backups sometimes fail to restore a specific mailbox. Your local backup is the safety net. Restore to a fresh mailbox once the host is back online.
Moving to a managed email provider (Zoho/Google) Small businesses often outgrow self-hosted cPanel email and move to Google Workspace or Zoho Mail for better reliability and mobile apps. Use the restore phase to push the cPanel backup directly to the new Google or Zoho IMAP endpoint in one step.
Legal or regulatory email retention Indian income tax requires 6-8 years of business records. GST audits go back 6 years. Export cPanel mailboxes annually to PST for offline archival, freeing up live mailbox quota while staying compliant.
Employee offboarding When an employee leaves, back up their employee@company.com mailbox to PST, then delete the mailbox from cPanel to free the quota. If you later need to review their emails (contracts, customer threads), restore the PST to a temporary IMAP account.

Alternative Approaches Compared

MethodTrade-offs
4n6 Email Converter (this video) Paid tool (~USD 49). Handles both backup and restore in a single interface. Best for one-off migrations or periodic backups. Windows only.
cPanel's built-in "Full Account Backup" Free, built into cPanel. Generates a single .tar.gz archive of your entire account including email, files and databases. Easy to restore to another cPanel server, but useless on non-cPanel targets like Gmail.
Roundcube's Import/Export Free, built into Roundcube webmail. Download individual emails as .eml, re-import one at a time. Fine for a few important messages, impractical for a full mailbox of thousands.
Thunderbird with Local Folders Free. Add the cPanel account via IMAP, drag emails from the IMAP folder to Thunderbird's Local Folders, which stores in MBOX format. Manual but works. Convert MBOX to PST later if you need Outlook format.
imapsync (command line) Free, open source. Directly syncs one IMAP mailbox to another (cPanel to cPanel, cPanel to Gmail, anything). Requires Linux or WSL and some command-line comfort. Most reliable for server-to-server migrations at scale.
SysTools IMAP Backup Paid alternative (~USD 69). Windows and macOS. Similar feature set to 4n6. Slightly better Mac support if your primary workstation is an iMac or MacBook.
MailStore Home (free for personal) Free for individuals, paid for business. Archives IMAP mailboxes into a searchable database format, NOT portable files. Great for search and archival, limited for migration.

Performance Notes from Real Testing

Tested on a mid-range cPanel host (Hostinger Business plan) with a 3-year-old contact mailbox, Dell Latitude 5420 (i5-1145G7, 16 GB RAM), 100 Mbps home connection.

Phase and mailbox profileResult
Backup: 1.2 GB mailbox, 8,500 messages9 minutes 40 seconds. PST size 1.3 GB. Zero errors. Host did not throttle.
Backup: 4.8 GB mailbox with many attachments, 22,000 messages44 minutes. PST size 5.1 GB. Two Dovecot "connection closed" errors at the 15,000-message mark, tool auto-reconnected within 5 seconds each time.
Restore: 1.3 GB PST → fresh cPanel mailbox on same host18 minutes. IMAP APPEND is inherently slower than IMAP FETCH because the server indexes each message. Every message verified on destination.
Restore: 1.3 GB PST → different cPanel host (migration)24 minutes. Slightly slower due to cross-provider IP routing. Read/unread flags preserved correctly.
Restore: 1.3 GB PST → Gmail account via IMAP38 minutes. Gmail rate-limits IMAP uploads to roughly 15 MB per second. Labels were created from folder names as expected. No missing messages.

Data Privacy and Security

Both backup and restore run entirely on your PC. Your cPanel mailbox credentials travel directly from the 4n6 tool to your host's Dovecot server over an SSL-encrypted IMAP connection on port 993, with no third-party server in between. The same applies to the restore target: credentials go straight from your PC to the destination IMAP endpoint. The local PST, EML or MBOX file sits on your hard drive and is only accessible to anyone who can read your disk. For maximum protection, encrypt the backup file with a tool like VeraCrypt or 7-Zip AES-256 before copying it to cloud storage or an external drive.

💡 Pro tips

  • Always backup before you touch the restore. Even if you think the target mailbox is empty, run a quick backup of it first. Restores overwrite nothing by default, but mistakes happen, and having a pre-restore snapshot means one click to roll back.
  • Set a quarterly automatic calendar reminder to back up every business cPanel mailbox. If your hosting disappears unexpectedly, you lose at most 3 months of mail, not years.
  • Use PST format for the backup if your business uses Outlook desktop, MBOX if you or a future staff member might open it in Thunderbird, or EML if you want individual message files searchable with Everything or grep. Dual-export to two formats is cheap insurance.
  • During a hosting migration, lower the DNS TTL on your MX records to 300 seconds 24 hours before the cutover. This limits the window during which email might route to the old server. Standard TTLs of 14400 seconds (4 hours) cause painful delays.
  • If you restore to Gmail, remember Gmail treats folders as labels. Your "Sent" folder will become a "Sent" label. Gmail's own Sent folder does NOT merge with this, so expect two parallel Sent areas unless you rename the imported one.
  • After a restore, send a test email to yourself from the destination mailbox. If it arrives, the outbound SMTP is configured correctly, if it doesn't, fix SMTP before trusting the mailbox in production.

Frequently Asked Questions

What IMAP settings does a typical cPanel email account use?

Most cPanel hosts use IMAP server mail.yourdomain.com on port 993 with SSL/TLS, or port 143 plain. SMTP is usually on port 465 (SSL) or 587 (TLS). POP3, if you prefer that, uses port 995 SSL or 110 plain. The exact hostname depends on your hosting provider, so check cPanel's Email Accounts page under Configure Mail Client for the authoritative settings for your specific server.

Why not use cPanel's built-in backup tool for email?

cPanel's built-in backup generates a full account archive including files, databases and email, which is excellent for full account restore on the same control panel. But the resulting backup file is a cPanel-specific tar archive that other systems cannot read. The 4n6 approach produces portable PST, EML or MBOX files that work with Outlook, Thunderbird and other clients, so you are not locked to a specific host or control panel.

Can I restore the backup to a non-cPanel destination like Gmail?

Yes. The restore phase uploads via IMAP so any IMAP-compatible target works: Gmail, Outlook.com, Zoho Mail, iCloud, another cPanel server, Office 365, or a fresh Roundcube on a different host. You enter the target IMAP hostname, username and password, and the tool pushes your backup there. This makes it a proper email migration tool, not just a backup tool.

How big are typical cPanel mailboxes?

Small business cPanel mailboxes typically sit between 500 MB and 5 GB, constrained by the hosting plan's mailbox quota (often 1 GB, 5 GB or unlimited depending on tier). Active freelancer or agency mailboxes can grow to 10-20 GB over a few years. Check cPanel's Email Accounts page for the exact disk use of each mailbox before starting a backup so you can estimate the time and destination drive space required.

Will the restore preserve folder structure and read/unread flags?

Folder structure yes. Inbox, Sent, Drafts and custom folders recreate on the restore target with the original names. Read/unread flags usually yes on IMAP restores because the tool uses IMAP APPEND commands that preserve flags where the server supports them. Some cPanel mail stacks using older Dovecot versions may reset flags to unread. Test with a single folder first.

Does restore send emails again or just upload to the mailbox?

Restore only uploads the stored messages to the destination mailbox via IMAP APPEND. It does not send emails to the original recipients, nor does it trigger any delivery notifications. You can safely restore a backup of sent items without worrying that they will be re-delivered. The messages simply appear in the Sent folder of the restore target as they originally did.

V
Written by
VideoShala Team
Software and Tech Tutorial Expert · New Delhi

VideoShala creates step-by-step video guides on banking, software, tutorials and current affairs. All tutorials are free and tested before publication.