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.

How to move mails to another email account in same cPanel?

Discussion in 'E-mail Discussions' started by .ARS., Mar 5, 2011.

  1. .ARS.

    .ARS. Member

    Joined:
    Mar 5, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Recently I used email with address abc@mydomain.com, but for some reasons I want to change the address to xyz@mydomain.com. Unfortunately I've received lots of emails in my abc@mydomain.com and don't want to loose them of course. So, if there's is a way I can move my mails from abc@mydomain.com to xyz@mydomain.com please tell me...?

    thanks before ;)
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could do:

    Code:
    cp -R /home/username/mail/mydomain.com/abc/{cur,new}/ /home/username/mail/mydomain.com/xyz/
    Above please replace username with the cPanel username, mydomain.com with the domain name, abc with the old email user's name, and xyz with the new email user's name. This will copy the cur and new folders on the abc account to that xyz account. Since maildir formats have each email individually named, this shouldn't overwrite any emails on the new account.

    Of note, you might want to backup the mail folder before doing the above:

    Code:
    cp -R /home/username/mail /home/username/mail.bak
    Again, please replace username with the cPanel username for the account.
     
  3. .ARS.

    .ARS. Member

    Joined:
    Mar 5, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    thanks for replying.

    but sorry, I'm newbie on cPanel, where the commands should be executed? or I can do it manually from file manager?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you do not have access to root SSH to run the commands, then this isn't possible to perform the commands indicated. You'd instead have to copy the files manually at the location noted (mail/mydomain.com/abc/cur to mail/mydomain.com/xyz/cur). If you have FTP access to the account, FTP would be far faster to copy the files.
     
Loading...

Share This Page