Email Migration from Sub-Domain to Main Domain

krver

Registered
Oct 31, 2014
1
0
1
cPanel Access Level
Reseller Owner
I am needing to eliminate a sub-domain but would like to retain all the mailboxes for the users on the sub-domain and move them to the main domain. Is there a way to do this while retaining the users current passwords?

I believe I can simply copy the mailboxes from the sub-domain to the main domain with the following code, however, I would like to copy the users passwords to the new domain as well. Is this possible?

Code:
cp -R /home/username/mail/domain.com/emailuser/* /home/username/mail/subdomain.domain.com/emailuser/
Thanks.