Skip to main content

Moving mailboxes from one account to another on the same server

Comments

3 comments

  • cPanelMichael
    Hello @martin MHC, The "cp -R" command you referenced should work, but it will require that you update the file ownership of the copied files after running the command. Additionally, before you take any action, it's highly advisable to create a backup of the account you are copying the emails into in-case anything goes wrong. One of the easier workarounds I've seen reported is to simply setup the two email accounts using IMAP in a desktop email client such as Thunderbird. Then, simply create an IMAP folder under the first email account, and drap/drop all of the emails from the second email account over to the folder created under the first email account. Keep in mind this may take some time if there's a large number of emails to copy over. Otherwise, the imapsync utility is likely the better approach via the command line: Thank you.
    0
  • martin MHC
    Hi @cPanelMichael, Thanks for your reply -- Yes I saw on the orginal thread the importance of taking a backup. Also, I am aware of the download-then-upload method as per Thunderbird etc. but as stated, due to the size of the mailboxes (total 19Gb) I would like to try and avoid this method if possible. Thank you for the link. I will look up IMAPsync. For the purposes of completeness, if I was to do: chown -R newuser:newgroup maildirectory
    This would work with my intended method using "cp -R" above? THanks
    0
  • cPanelMichael
    Hi @martin MHC, Yes, the "chown" command will update the ownership values accordingly. Additionally, you can run the following command after copying over the emails for good measure: /scripts/mailperm $username
    Thank you.
    0

Please sign in to leave a comment.