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.