DEV Community

Cover image for How to Migrate Email from G Suite to cPanel?
MilesWeb
MilesWeb

Posted on

How to Migrate Email from G Suite to cPanel?

There are some scenarios where you might want to migrate your G Suite emails to cPanel. Here is an article that explains how to migrate emails from G Suite to cPanel.

First, we need the following details:

  • Username and password for your G Suite email account.
  • Password and user account for the cPanel mail account.

Note: If you have not enabled IMAP settings in Gmail, enable it before proceeding with the migration process.

Steps to Enable IMAP Settings in Gmail

  • Login to your Gmail account.
  • Go to Settings >> Click on “Forwarding and POP/IMAP”
  • Look for the "IMAP Access" option
  • Then Enable the IMAP, if its disabled.

Image description

For ON Less Secure Apps Settings

  • Click on Logo >>Manage your Gmail account >>Security >>Scroll down to the page to Less Secure App
  • Click to Turn it ON.

Image description

Using the following command, you can install the imapsync tool if you don't have it already:

sudo yum install imapsync

Starting the Migration Process

Using the below command on the cPanel server, you can now begin the migration process.

imapsync --host1 imap.gmail.com --port1 993 --ssl1 --user1 gaurav@thatisfun.in --passfile1 /home/gaurav/pass1 --host2 eternity.herosite.pro --port2 993 --ssl2 --user2 gaurav@thatisfun.in --passfile2 /home/gaurav/pass2

The username for the account needs to be replaced with gaurav.

/home/gaurav/pass1 – Store your gmail account password in this file
/home/gaurav/pass2 – Store your cpanel account password in this file

You can migrate to cPanel from G Suite using this method!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video