The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Migration from Sub-Domain to Main Domain

Discussion in 'E-mail Discussions' started by krver, Oct 20, 2015.

  1. krver

    krver Registered

    Joined:
    Oct 31, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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.
     
Loading...

Share This Page