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?

link|improve this question

67% accept rate
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 at 3:51
No, though I could hypothetically change them to get to that point. – Joseph Jan 19 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. imapsync.lamiral.info – skub Jan 19 at 4:00
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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