Email

Archive a copy of all a domain's sent and received email in cPanel

Reviewed on 3 min read email archiving

cPanel's Archive feature automatically keeps a copy of all the email received or sent by any account on a domain. The copy is stored separately, so it's kept even if the user deletes the message from their mailbox.

It's useful for businesses that, as an internal policy, need to audit email use, investigate security incidents or have all their email centralised in one place separate from each user's accounts.

Turn on the archive

In cPanel, go to Email > Archive.

cPanel Archive screen

  • At the top you can turn on archiving by default for the domains you create from now on. It doesn't affect existing domains.
  • At the bottom you have the list of your domains. For each one you can turn on separately:
    • Incoming Email Messages
    • Outgoing Email Messages
    • Outgoing Mailing List Messages

When you turn on any of them, a drop-down appears for choosing the retention policy: how long each copy is kept. It can be forever or a number of months or years; after that period, the copies are deleted automatically.

Email archive retention policy

Save the changes. The archive starts saving email from that moment on: it doesn't copy the messages that were already in the mailboxes.

All archived email is duplicated, so it takes up additional space on your hosting. Set the retention to what you really need to keep.

View the archived email

On the same screen you'll see, for each domain, the space the archive takes up (it's recalculated once a day) and the ways to access it. cPanel creates a special account, _archive@tudominio.com, which you can open in three ways:

  • Webmail, from the link on the screen itself.
  • An email program over IMAP: username _archive@tudominio.com and the cPanel password. The server and ports are the same as for any account: email server connection details.
  • Download a compressed file with all the archived email.

As access uses the cPanel password, don't give it to anyone who should only view the archive: it gives access to the whole hosting.

In both webmail and IMAP, to see the emails you need to subscribe to the archive folders. There's one folder per type (incoming, outgoing…) and inside it, one subfolder per day:

Email archive folders organised by date

In Roundcube, go to Settings > Folders and tick the folders you want to see.

Check it works

Send an email from an account on the domain and another one to it. Within a few minutes they should appear in that day's subfolder inside the archive.

In Track Delivery you'll see, as well as the original message, the archiving action. It isn't a second delivery to the recipient, just the copy the server keeps.

Archiving of an email in Track Delivery

Bear in mind that only email passing through our server is archived. If an account sends through another provider (for example, a bulk mailing service or an external SMTP server), those messages aren't archived.

You may also find useful

Something wrong or out of date? Tell us and we will review it.