Migrate Gsuite mail accounts to cPanel

Date posted : 07/02/2019

There are cases, you want to switch from your Gsuite mail server to cPanel mail hosting server.

Its pretty easy to migrate the emails seamlessly with the use of imapsync tool.

All you need is below details:-
1. Gsuite mail account username and password
2. cPanel mail user account and password

If you don’t have imapsync tool, please install with below command
sudo yum install imapsync

You can start the migration inside screen terminal

$ screen -S mail_migration
$ imapsync --host1 imap.gmail.com --port1 993 --ssl1  --user1  info@domain.com --passfile1 /etc/secret1 --host2 mail.domain.com --port2 993 --ssl2  --user2 info@domain.com --passfile2 /etc/secret2
/etc/secret1 - Store your gmail account password in this file
/etc/secret2 - Store your cpanel account password in this file

Note: If you didn’t enable IMAP in gmail, please do enable it before proceeding with migration

Login to Gmail >> Settings >> Click on “Forwarding and POP/IMAP” >> Browse for “IMAP access:” >> Enable IMAP if its disable already >> You can use the default settings

Thanks for using pheonix solutions.

You find this tutorial helpful? Share with your friends to keep it alive.

Leave a Reply