Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I currently host mail accounts on a VPS, which I want to move to a hosted CPanel account.

Mail is handled by Postfix and Dovecot, but I don't know much about the server I want to move the mail to.

How can I move the mail files to the new host?

As per John Siu's comments, there are five email accounts; I'm not sure what is meant by 'Linux accounts or virtual accounts'; I don't have access to all account passwords, but these can easily be reset; all accounts use IMAP.

share|improve this question

closed as off-topic by masegaloeh, mdpc, Jenny D, HopelessN00b Mar 24 at 11:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – masegaloeh, mdpc, Jenny D
If this question can be reworded to fit the rules in the help center, please edit the question.

Need more info to give suggestion.(1) How many accounts? (2) Linux account or virtual account? (3) You have access to all account password? (4) IMAP or POP3 only? – John Siu Dec 28 '12 at 2:33
You have the system administrator do this for you. (Though a professional sysadmin might question your sanity for moving to a cPanel-based web host, that's another matter...) – Michael Hampton Jan 1 '13 at 1:45

1 Answer 1

up vote 0 down vote accepted

I think I have found the solution:

Seeing that the Maildir on the old server houses files and directories that are pretty similar to the structure of folders on an email account, I compared against what would be in the directory for mail users on the new server: the same structure.

So, I set up new mail users on the new server, downloaded the Maildir directories for each user from the old server and then uploaded them to the new server via FTP, replacing whatever files and directories are put in place by default for the new users.

Checking the accounts via webmail shows that the emails and folders are readable straight away.

share|improve this answer

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