How do you copy emails from an account to another account as ad-don account while retaining all email list, emails and passwords?
Due to the recent changes in cPanel pricing, we have decided to use addon domains to host multiple domains in a single account. These domains are only using emails, so resource choking ( other than emails) should not be an issue.
The problem is, I have to recreate each email for each domain with new passwords, give the new passwords to clients, and then they have to re-setup their mail clients again. Is there a way to restore only emails, email list and passwords from individual accounts to addon domains without replacing other's content?
-
This is possible but it could be a bit tricky if you're not sure of what you're doing. The steps are as follows: Part 1: Move the password, setup and configuration files: - Go to
/home/originaluser/etc/
- In this folder you will see all the domains that have email on that cPanel account.
- Locate the folder for the domain's email you would like to move
- Create a backup of the folder
cp -R /home/$USER/etc/domain.tld{,.}
- move the folder to the new location (if it's located on the same server)
mv /home/originaluser/etc/domain.tld /home/newuser/etc/
- Update UID accordingly
chown -R newuser /home/newuser/etc/domain.tld
- You can do this a couple of ways:
- You can rsync the data from
/home/originaluser/mail/domain.tld
to/home/newuser/mail/domain.tld/
- You can manually move the file in the same manner as done in the previous example
0 - Go to
-
Thanks! What if I don't have CLI access? Both servers are in shared server. By email list, I am referring to email ID's: a@domain.tld, b@domain.tld, etc 0 -
You can do this using FTP or if necessary, using the FileManager as well. 0 -
Hello, Thanks for the answer. Sorry for being a complete newbie in this matter. I copied the folders domain.tld from /etc and /mail folders to the respective folders of the addon domains. However, I can't see those emails in the list of emails. I found this tutorial too: Transfer Your E-mail From One cPanel to Other Without Losing a Single Mail - BuycPanel You mentioned I have to update UID's accordingly too, but I'm a bit confused on that. Is it possible to do so without CLI access? Even if I did have CLI access, does 'newuser' refer to the cPanel user ID of the main cPanel accounts where the addon domain is residing? 0 -
Hello, The username (UID) needs to match that of the username of the account the mail is now on. The article notes and my last response indicates you can do this over FTP. 0 -
Figured it now. Thanks a LOT! 0
Please sign in to leave a comment.
Comments
6 comments