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.
- 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.
- Run the
You can view the messages from the cPanel interface or in a mail client. When you enable Email Archiving, the amount of disk space that the feature uses can quickly grow based on the length of time over which you store messages. Verify that your disk drive has ample space before you enable Email Archiving.
Default Mail Archiving Configuration
To enable a default configuration to use for all of your domains, perform the following steps:
- Select the desired archive type.
- Select the length of time during which mail should remain in the archive.
- Click Apply to All of My Domains to apply the default configuration to all of the domains that you currently own.
Manage Archiving
The Manage Archiving table lists the archiving settings for each of your domains.
Modify email archiving for a domain
To make changes to an existing email archiving configuration, perform the following steps:
- In the table, find the domain for which you wish to enable email archiving.
- Select the desired archive type.
- Select the length of time during which mail should remain in the archive.
- You will receive a notification that the Email Archiving feature is enabled.
IMAP Access
You can view messages in multiple ways through an IMAP connection:
To use a cPanel-provided auto-configuration script, perform the following steps:
- Click on the IMAP Access option next to the domain for which you wish to view messages.
- Choose from the list of mail clients and select either IMAP over SSL/TLS (recommended) or IMAP.
- Follow the instructions to complete the setup.
- Use the provided settings to manually set up a read-only configuration via IMAP.
To manually configure your mail client, perform the following steps:
- Click on the IMAP Access option next to the domain whose messages you want to view.
- In the selected mail client, provide the following information, where
example.com
is your domain name:- Mail Server Username:
[email protected]
- Your password is the same as your account password.
- Incoming Mail Server: (SSL)
mail.example.com
- IMAP port:
993
- IMAP port:
- Incoming Mail Server: (non-SSL)
mail.example.com
- IMAP port:
143
- IMAP port:
- Mail Server Username:
- After you provide the information to your mail client, the daily directories will appear in the folder list.
Download Archives
To download the archives to your PC, perform the following steps:
- Click the Download Archives option next to the domain for which you wish to view messages.
- Select from the following options:
- All archives
- Incoming
- Mailing Lists
- Outgoing
- A .
zip
file that contains the archived messages will download to your local computer.
Access Webmail
Use the Access Webmail link to view archived messages through Webmail. You may need to take additional steps on some webmail clients.