How to Export Emails with Webmail on a cPanel Server (Roundcube, Horde & SquirrelMail)
Exporting emails from a cPanel server is an essential task for system administrators, website owners, and everyday users alike. Whether you need to back up critical business communications, migrate to a new email provider, archive historical data for compliance, or simply safeguard important messages before switching hosting plans, knowing exactly how to export your emails can save you significant time and prevent data loss.
cPanel offers three built-in webmail applications — Roundcube, Horde, and SquirrelMail — each with its own interface and feature set. In this comprehensive guide, we'll walk you through the exact steps to export emails using each of these clients, explain the file formats involved, and share best practices for managing your exported email data effectively.
Why Exporting Emails from cPanel Matters
Before diving into the technical steps, it's worth understanding the most common scenarios where email export becomes necessary:
- Hosting migration: Moving from one hosting provider to another requires transferring all email data to avoid losing correspondence.
- Email client migration: Switching from webmail to a desktop client like Thunderbird, Outlook, or Apple Mail requires importing emails in a compatible format.
- Data backup and disaster recovery: Regularly exporting emails ensures you have an offline copy in case of server failure, accidental deletion, or account compromise.
- Compliance and archiving: Many businesses are legally required to retain email records for a specified period.
- Account decommissioning: When closing or deactivating an email account, exporting ensures no data is permanently lost.
If you're managing email accounts on a VPS with cPanel, understanding these export methods is a fundamental part of responsible server administration.
Understanding the MBOX Format
Most cPanel webmail clients export emails in the MBOX format (.mbox). This is a widely supported, plain-text container format that stores multiple email messages sequentially in a single file. MBOX files are compatible with:
- Mozilla Thunderbird (via ImportExportTools NG add-on)
- Apple Mail (native import support)
- Gmail (via third-party tools or Google Workspace Migration)
- Microsoft Outlook (via conversion tools)
- Most Unix/Linux mail utilities
Understanding this format upfront will help you plan how to use your exported data once the process is complete.
Method 1: Exporting Emails via Roundcube
Roundcube is the most widely used and feature-rich webmail client available in cPanel. It offers a clean, modern interface and includes a native email export function, making it the recommended choice for most users.
Step 1: Log In to Roundcube
- Open your web browser and navigate to your webmail URL. This is typically formatted as:
https://yourdomain.com/webmail- Enter your full email address and password.
- From the webmail selection screen, click Roundcube to launch the client.
> Tip: You can also access Roundcube directly via https://yourdomain.com/roundcube on many cPanel configurations.
Step 2: Navigate to the Target Folder
Once logged in, you'll see the Roundcube interface with your mailbox folders listed in the left-hand sidebar. Click on the folder containing the emails you want to export — for example:
- Inbox — for received messages
- Sent — for outgoing messages
- Custom folders — for organized or archived mail
Step 3: Select the Emails You Want to Export
- To export specific emails, use the checkboxes on the left side of each message row to select individual items.
- To export all emails in a folder, click the checkbox at the very top of the message list (the "Select All" checkbox) to highlight every message in the current view.
> Note: If your folder contains more messages than are displayed on a single page, make sure to select all pages or adjust the display settings to show all messages before selecting.
Step 4: Export the Selected Emails
- With your emails selected, click the "More" button located in the top action menu bar.
- From the dropdown menu that appears, select "Download".
- Roundcube will immediately begin packaging the selected emails into an MBOX file.
Step 5: Save the MBOX File
Your browser will display a standard file download prompt. Choose a destination folder on your local computer and click Save. The file will typically be named after the mailbox folder (e.g., Inbox.mbox).
Recommended practice: Store your exported MBOX files in a clearly labeled, date-stamped folder (e.g., email-backup-2025-01-15) to make future retrieval straightforward.
Method 2: Exporting Emails via Horde
Horde is a powerful, enterprise-grade webmail client available in cPanel. It offers a broader range of features compared to Roundcube, including calendar, tasks, and contact management modules. Its email export functionality is similarly robust.
Step 1: Log In to Horde
- Navigate to
https://yourdomain.com/webmailin your browser. - Enter your email credentials.
- On the webmail selection screen, choose Horde to proceed.
Step 2: Open the Mail Module
After logging in, you'll land on the Horde dashboard. If the mail interface isn't already displayed:
- Click on the Mail icon or module from the top navigation bar or the application launcher.
- In the left-hand folder tree, navigate to the folder containing the emails you wish to export (e.g., Inbox, Sent Items, or a custom folder).
Step 3: Select Your Emails
- Check the boxes next to individual emails to select specific messages.
- To select all messages in the current folder view, use the "Select All" option typically found in the toolbar or via a right-click context menu.
Step 4: Initiate the Export
- With your emails selected, click the "More" button or the actions menu at the top of the message list.
- From the dropdown, choose "Export".
- A dialog box will appear asking you to select an export format. Choose MBOX for maximum compatibility with other email clients and tools.
- Confirm your selection and click Export or Download.
Step 5: Save the Exported File
As with Roundcube, your browser will prompt you to save the resulting file. Choose your preferred save location and click Save. The exported MBOX file will contain all selected messages with their headers, body content, and attachments intact.
Method 3: Exporting Emails via SquirrelMail
SquirrelMail is the oldest of the three webmail clients available in cPanel. While it remains functional and is still included in some cPanel installations, it is significantly less feature-rich than Roundcube or Horde. Notably, SquirrelMail does not include a native email export feature, which requires users to rely on workarounds.
Step 1: Log In to SquirrelMail
- Go to
https://yourdomain.com/webmailin your browser. - Enter your email address and password.
- Select SquirrelMail from the webmail client options.
Step 2: Navigate to Your Mail Folder
Once logged in, use the folder list in the left-hand panel to navigate to the folder containing the emails you want to preserve (e.g., Inbox, Sent, or a custom folder).
Step 3: Understanding the Limitation
Unlike Roundcube and Horde, SquirrelMail has no built-in export or download function for email messages. This is a significant limitation that makes it unsuitable for bulk email export tasks.
Step 4: Available Workarounds
Since direct export is not possible in SquirrelMail, you have several alternative approaches:
Option A: Forward Emails Manually
- Select the emails you want to preserve using the checkboxes.
- Use the Forward function to send them to another email address (e.g., a Gmail or Outlook account) where you can access and archive them.
- This method is practical for small numbers of emails but is not scalable for large mailboxes.
Option B: Use an IMAP-Compatible Desktop Client
- Configure a desktop email client such as Mozilla Thunderbird or Microsoft Outlook using your cPanel IMAP credentials.
- Once connected, the client will sync all your emails locally, effectively creating a local backup.
- You can then export from the desktop client in your preferred format.
Option C: Access Emails via cPanel File Manager or SSH
- If you have server-level access (available with a VPS Hosting plan), you can navigate to the Maildir directory on the server (typically located at
/home/username/mail/) and copy the raw email files directly. - This is the most complete and reliable method for large-scale exports when SquirrelMail is the only available webmail interface.
> Recommendation: For users who regularly need to export or manage email data, switching to Roundcube or Horde is strongly advised. Both clients offer far superior export capabilities and overall usability.
Additional Methods for Exporting cPanel Emails
Beyond webmail-based export, there are several other reliable methods worth knowing:
Using cPanel's Email Account Backup Feature
cPanel's built-in Backup Wizard (available under cPanel → Backup) allows you to download a full backup of your home directory, which includes all email data stored in Maildir format. This is the most comprehensive backup method and is ideal for full account migrations.
Using an IMAP Email Client (Thunderbird, Outlook, etc.)
Configuring your email account in a desktop client via IMAP is one of the most flexible export methods:
- Add your cPanel email account to Thunderbird or Outlook using the IMAP settings provided in your cPanel dashboard.
- Allow the client to fully synchronize all folders.
- Use the client's built-in export or archive feature to save emails locally.
This method works regardless of which webmail client your hosting plan uses and is particularly useful when managing multiple email accounts.
Using Third-Party Migration Tools
Tools like imapsync, MailStore Home, or Aid4Mail can connect directly to your cPanel mail server via IMAP and export or migrate emails in bulk. These are especially useful for enterprise-level migrations involving hundreds of mailboxes.
Best Practices for Email Export and Backup
To ensure your email export process is smooth, reliable, and secure, follow these best practices:
- Export regularly: Schedule periodic email exports as part of your overall backup strategy. Don't wait until a crisis forces your hand.
- Verify your exports: After exporting, open the MBOX file in a compatible client (e.g., Thunderbird) to confirm the emails are intact and readable.
- Use secure storage: Store exported email files in an encrypted location — either an encrypted local drive or a secure cloud storage service.
- Label and date your exports: Use clear naming conventions (e.g.,
inbox-export-2025-06-01.mbox) to make future retrieval easy. - Test your import process: If you're migrating to a new client or server, test the import process with a small batch of emails before committing to a full migration.
- Keep multiple copies: Follow the 3-2-1 backup rule — three copies of your data, on two different media types, with one stored offsite.
Choosing the Right cPanel Hosting for Email Management
The quality of your email management experience is directly tied to the hosting environment you're running on. Here's a quick overview of how different hosting types affect your options:
- Shared Web Hosting: Ideal for small businesses and personal websites. cPanel is typically pre-installed, and all three webmail clients are available. However, resources are shared, which can affect performance with large mailboxes.
- VPS Hosting: Provides dedicated resources and greater flexibility. You can configure custom mail server settings, install additional mail management tools, and handle larger volumes of email without performance degradation.
- Dedicated Servers: The most powerful option for organizations with high-volume email requirements. Full root access allows complete customization of your mail server environment, including advanced export and archiving solutions.
For businesses that rely heavily on email communication, pairing your hosting plan with a professional Email Hosting solution ensures maximum deliverability, security, and reliability.
Additionally, securing your domain with a valid SSL Certificate is essential for encrypting webmail connections and protecting your email credentials from interception.
Frequently Asked Questions
Q: Can I export emails from cPanel without using webmail?
Yes. You can use an IMAP-compatible desktop client (like Thunderbird), the cPanel Backup Wizard, SSH access to copy Maildir files directly, or third-party tools like imapsync.
Q: What is the MBOX format and is it universally compatible?
MBOX is a plain-text email storage format that stores multiple messages in a single file. It is supported by Thunderbird, Apple Mail, and many other clients, though Microsoft Outlook requires a conversion step.
Q: Will exporting emails delete them from the server?
No. Exporting via Roundcube, Horde, or any IMAP-based method creates a copy of your emails. The originals remain on the server unless you manually delete them afterward.
Q: How large can an MBOX export file get?
This depends entirely on the number of emails and the size of their attachments. A mailbox with years of emails and large attachments could produce an MBOX file several gigabytes in size. Plan your storage accordingly.
Q: Is SquirrelMail still worth using in 2025?
For most users, no. SquirrelMail lacks modern features, including native export functionality, and has not received significant updates in years. Roundcube is the recommended alternative for virtually all use cases.
Conclusion
Exporting emails from a cPanel server using webmail clients is a straightforward process when you use the right tools. Roundcube and Horde both offer native, reliable export functionality that produces industry-standard MBOX files compatible with virtually any email client. SquirrelMail, while still functional for basic email tasks, lacks built-in export capabilities and requires workarounds that are impractical for large-scale operations.
For the best overall email management experience, consider upgrading to a VPS with cPanel for greater control, performance, and flexibility. Combine this with a dedicated Email Hosting plan and a valid SSL Certificate to ensure your communications are always secure, reliable, and easy to manage.
By following the steps and best practices outlined in this guide, you'll be well-equipped to export, back up, and migrate your email data with confidence — whether you're a solo website owner, a growing business, or a seasoned systems administrator managing dozens of accounts.
