Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email Migration from Sub-Domain to Main Domain

Discussion in 'E-mail Discussion' 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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice