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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page