Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay. So the company I work with just transferred web servers. I have SSH access to both machines. Without making a FULL cpanel backup, is there a way I can transfer JUST the email accounts from the old to the new? SSH SCP?

share|improve this question
Do you know the passwords for the accounts, in other words, can you create the accounts so that only the emails and folders need transferring? – Paul Jan 19 '12 at 3:51
No, though I could hypothetically change them to get to that point. – Joseph Jan 19 '12 at 3:56
If they are IMAP you might be able to use Imapsync. I think you might have to know the password though, which might be a bummer for your situation. It's been a while since I've used it; so I forget exactly. – skub Jan 19 '12 at 4:00
up vote 2 down vote accepted

The folders and emails are stored in ~/mail and is a standard Maildir format. So if you can recreated the accounts on the new server, you should be able to copy everything over with scp as you suggested:

scp user@remoteserver:/home/user/mail/* /home/user/mail/ -r

Then copy/paste the appropriate lines in /etc/passwd /etc/group and /etc/shadow to duplicate the accounts.

Make sure the UID and GID of the copied mails match the new server settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.