Migrate employee Gmail mailboxes to Alibaba Cloud Mail. This guide covers Gmail-side prerequisites, migration task creation in the Alibaba Cloud Mail admin console, and the three available migration methods.
The screenshots of the third-party email provider in this topic are for reference only. The actual interface may differ as the email provider updates its features. Refer to the actual interface of your third-party email provider.
Prerequisites
Before you start the migration, make sure the following conditions are met.
Gmail-side settings
Complete the following checks in each Gmail account that you plan to migrate.
Enable IMAP or POP. Alibaba Cloud Mail uses the IMAP or POP protocol to retrieve emails from Gmail. If neither protocol is enabled, the migration cannot connect to the source mailbox.
Disable two-step verification (2FA). Two-step verification blocks programmatic sign-in, which the migration relies on.

Enable Less secure app access. The migration authenticates through standard IMAP or POP credentials, which Gmail classifies as less secure app access.
On the user side: Enable the setting in the Gmail account.

On the administrator side: If enabling the setting on the user side does not take effect, ask the Google Workspace administrator to enable it at the organization level.

(Optional) Verify the connection through a third-party email client. If you want to confirm that Gmail accepts external connections before you start the migration, test the sign-in with a third-party email client.
Use a client that the account does not already trust, so the test result is meaningful. A previously authorized client may succeed even when the migration would fail.
Test on a network outside mainland China.

If all restrictions are removed but the sign-in still fails, retry after a short wait. Gmail sometimes requires time to propagate access changes.
Alibaba Cloud Mail-side preparation
Create and assign Alibaba Cloud Mail accounts for all users to be migrated. For more information, seeCreate employee accounts.
If you are migrating from one Alibaba Cloud Mail tenant to another, log in to the destination tenant's Mail admin console to start the migration. Do not start the migration from the source tenant.
Source system requirements
For all user accounts in the source system, complete the following before the migration:
Disable email retrieval limits. For example, change "Fetch last 30 days" to "Fetch all" so that the migration can access the complete mailbox history.
Disable IP-based login restrictions.
Disable two-factor authentication. This includes SMS verification, WeChat verification, and authenticator apps.
Disable application-specific passwords. If an application-specific password is enabled on a source mailbox, migrating with the original password fails with an account or password error. Disable the application-specific password feature, or use the generated security password for the migration configuration. For more information, seeEnable and set up a third-party client security password.
Complete data deletion or moving operations. Avoid modifying data in the source system during the migration.
Use standard folder names. Folder names in the source system should not contain special characters such as "+", "*", "\", or "/".
Depending on the features of your source system, the administrator can either disable these settings in bulk or by using the source system's API.









Prepare a CSV file with the following three required columns:



Use cases