Email Archiving in cPanel


The Email Archiving feature allows users to save incoming, outgoing, or mailing list messages for a specified amount of time. cPanel stores the messages in the mail directory in the user's home directory. Each day, the system generates a new directory with the archivetype.YYYY-MM-DD format to contain all of the messages for the specified archive type.

  • When the server receives a message, it will immediately archive it.
    • This action takes place before the system applies any filters.
    • The system will archive both spam and non-spam emails.
  • Any email that you received before you enabled the Email Archiving feature is not archived.
    • Run the /usr/local/cpanel/scripts/email_archive_maintenance script to archive these messages.

Email Archiving

These practical steps will show you how to do Email Archiving in the cPanel:

  1. Login to your cPanel account.
  2. The control panel home page will appear, at the Email menu click the Archive icon.
  3. The Default Archive Configuration page will appear, select:
    • Select the desired archive type.
    • Select the length of time during which mail should remain in the archive.

4. Click Apply to All My Domains to apply the default configuration to all of the domains that you currently own.

Download Archives

To download the archives to your PC, perform the following steps:

  1. Click the Download Archives option next to the domain for which you wish to view messages.
  2. Select from the following options:
    • All archives
    • incoming
    • mailing lists
    • outgoing
  3. A .zip file that contains the archived messages will download to your local computer.

Access Webmail

  1. Use the Access Webmail link to view archived messages through Webmail.

You may need to take additional steps on some webmail clients.

Display or hide old subfolders

Using the RoundCube webmail

  1. Click Settings and choose the subfolder to show.
  2. Refresh the page.

Using the Horde webmail

  1. Click Folder Action to view all mailboxes.
  2. Right-click the subfolder you want to show and click Subscribe.

  • Email archiving is enabled for mail accounts under the domain name as a whole, not for a specific account.
  • You can only view saved emails through the web browser using email programs (Horde, Roundcube). Y
  • ou can send a copy of all archived messages to any other email address through the web interface.
  • Archive Email consumes more space in the total space allocated for hosting messages and the amount of space required depends on the length of time that is specified for storing
  • messages. Archive Email does not store messages that have already enabled this feature


Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on June 8, 2020
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support