Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have a shared hosting environment with cPanel installed managing all email creation, forwarding and all other tasks. But now I have moved to VPS using CentOs and already installed postfix, dovecot, roundcube and set up an email server. Now I need to migrate my emails from the cPanel and into the VPS. What I would like to know is the process of integrating those mails to Postfix/dovecot.

I have saved the entire mail folder from my cPanel. public_html/username/mail which has many emails. I would like to know if someone has done the same thing and successfully migrated their servers.

share|improve this question

closed as off-topic by Hyppy, masegaloeh, mdpc, Scott Pack, Jenny D May 2 '15 at 17:27

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

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 3 down vote accepted

postfix is not involved in a simple maildir migration. postfix just transfers incoming and outgoing mail, mail storage is dovecot's job.

it is possible to transfer the contents of a maildir onto a new server, dovecot should load the messages just fine. however, if you're doing it this way there is a chance you mess up file permissions, message flags, folder separators etc.

I'd recommend using a tool like imapsync or a service like migrationwiz instead which makes the migration process very easy, you basically just give them account data for both servers and let the tool handle the rest.

share|improve this answer

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