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!

Move mail from a cpanel account to another

Discussion in 'E-mail Discussion' started by Frankk, Nov 23, 2014.

  1. Frankk

    Frankk Member

    Joined:
    Aug 20, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Let's say I have domain1.com and domain2.com

    Now domain1 inc has just bought the domain2 inc

    As part of the merge of the 2 companies they decided that only domain1.com would stay up but they still need the emails from domain2.com.

    The question is how can I take 2 cpanels and get the emails from domain2.com onto the account for domain1.com without reconfiguring everything.

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will need to backup the email data from the second account. It's located in:

    /home/$username/mail

    Note that this is purely the email data, it's not the email account username/password information. After you terminate the second account, you would need to add it to the first account as an addon domain name, create the individual email accounts, and then restore the mail data that you backed up. After restoring this data, you must manually update the ownership values to reflect the new username.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Frankk

    Frankk Member

    Joined:
    Aug 20, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Thanks for the headsup, but I already knew I could do that, what I want is to move the accounts themselves not just the content. There's a bunch of them and recreating means re configuring them all also (desktop, tablet, phone and all) which would be a really long day in hell.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    The account data is stored in:

    /home/$username/etc/$domain/passwd
    /home/$username/etc/$domain/quota
    /home/$username/etc/$domain/shadow

    However, note that in addition to manually copying those entries to the new account's "etc" directory, you will also have to use a "replace" command on these files to reflect the new username.

    Thank you.
     
    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