How to Easily Migrate Email from G Suite to CPanel
In certain scenarios, you may need to migrate emails from G Suite to a cPanel server. This article outlines the steps for this migration.
Firstly, gather the following details:
- G Suite email account username and password.
- cPanel mail account username and password.
Note: If IMAP settings are not enabled in Gmail, enable them before proceeding with the migration.
Steps to Enable IMAP Settings in Gmail:
- Log in to your Gmail account.
- Go to Settings, then click on “Forwarding and POP/IMAP.”
- Look for “IMAP Access.”
- Enable IMAP if it’s currently disabled.
To enable Less Secure Apps settings:
- Click on the Logo >>Manage your Gmail account >> Navigate to Security >>Scroll down to the page to Less Secure App
- Turn it ON.
If you don’t have the imapsync tool, install it using the command:
sudo yum install imapsync
Starting the Migration Process
To commence the migration process, run the following command inside the screen terminal on the cPanel server:
imapsync –host1 imap.gmail.com –port1 993 –ssl1 –user1 [email protected] –passfile1 /home/gaurav/pass1 –host2 eternity.herosite.pro –port2 993 –ssl2 –user2 [email protected] –passfile2 /home/gaurav/pass2
Replace “goransh” with the account username.
/home/gaurav/pass1 – Save your gmail account password in this file
/home/gaurav/pass2 – Save your cpanel account password in this file
This is the successful migration process from G Suite to cPanel!