Emails
one of my domains have email accounts. and am using this account from the last 2 years. now the problem is I have my old backups which is older than two year. so can I copy the mail folder to my existing working account and use it. it will work or not.
-
Hi,
If the account backup is using the same storage type for email, extracting mail from the backup to restore it should be possible. For example, if the backup and current account are both using maildir this should be possible. You can check the storage type with the following command:
# grep mailbox_storage /var/cpanel/cpanel.config
If the backup in question was generated from cPanel, you can use the guide below to extract emails from the backup:
How to manually locate and extract a file or directory from a cPanel backup
Depending on the permissions of the mail within the backup, you may need to manually correct the file ownership and/or permissions of the email after restoring it.
0 -
To be clear, the value set within /var/cpanel/cpanel.config is the default. Each customer can also change the mailbox format, so it would also be good to check what is set within...
/home/$user/mail/$domain/$localname/mailbox_format.cpanel
Replace #user with the cPanel username
Replace $domain with the domainname.tld
Replace $localname with the first part of the email. address (before the @ )0
Please sign in to leave a comment.
Comments
2 comments