Migrate from Office 365

Updated at:

This topic describes the prerequisites and procedures for migrating mailboxes from Office 365 to Alibaba Mail.

Note
  • The screenshots of the third-party mailbox service are for reference only. The actual interface may differ due to feature updates. For the most current information, refer to the service's interface.

  • The free edition of Alibaba Mail does not currently support mailbox migration from this source provider.

You can choose between Domain admin console migration (recommended) or Dedicated tool migration.

A. Domain admin console migration (recommended)

1. Log on to the Alibaba Mail admin console and create a migration task.

image.png

2. Select the source mailbox edition. This topic uses **Office 365 International Edition** as an example.

image.png

3. Click the Logon and Authenticate button.

image.png

4. You are redirected to a new page. Log on with your Microsoft administrator account to grant authorization. The account must have administrative permissions for the organization you intend to migrate.

image.png

5. Accept the authorization request.

image

Authorization successful.

image.png

6. Return to the Alibaba Mail admin console. When **Authentication passed** is displayed, click **Next**.

image.png

7. Configure the migration parameters as needed.

image.png

8. When you add migration accounts, select the default migration method. Enter the accounts according to the template, with the Alibaba Mail account first, followed by the source mailbox account.

image.png

9. The configuration is complete. Wait for the migration to start.

image.png

B. Dedicated tool migration

1. As the Office 365 administrator, register a migration application and authorize the migration service to access mailbox data.

2. Add the API permissions for the migration application to access mailbox data.

3. Obtain the required IDs.

  • Enterprise application ID: APPLICATION_ID

  • Enterprise application object ID: ObjectId

image

The following IDs are required in the configuration file of the migration tool:

  • client secret: ews.client.secret

  • application ID: ews.client.id

  • tenant ID: ews.client.tenant

image

image

4. Create a migration service and grant it full access to the mailboxes.

5. Obtain the migration tool and run the migration.

Start the migration in Alibaba Mail

After completing the preceding preparations, follow the steps below to start the migration.

Create a migration task

Note
  • Before you start the migration, ensure that you have created the necessary user accounts in Alibaba Cloud Mail. For more information, see Create employee accounts.

  • If you are migrating from one Alibaba Cloud Mail instance to another, log on to the destination instance's Mail admin console to start the migration. Do not start the migration from the source instance.

  1. Log on to the Alibaba Mail domain admin platform with the administrator account (postmaster).

    Standard edition

    https://qiye.aliyun.com/

    Domestic edition

    https://mail.xc.aliyun.com/

  1. In the left-side navigation pane, click Email > Mail Migration > Create Migration Task.image

1. Preparation

  1. On the Contacts > Member Management page, ensure you have created accounts for all users you plan to migrate.

  2. Confirm that your source system is running and its IMAP service is enabled.

  3. For all user accounts in the source system, disable any email retrieval limits (for example, change "Fetch last 30 days" to "Fetch all"), IP-based login restrictions, two-factor authentication (such as SMS, WeChat, or authenticator apps), and application-specific passwords.

  4. Complete any data deletion or move operations in the source system beforehand. Avoid modifying data during the migration.

  5. Avoid using special characters such as +, *, \, or / in source system folder names.

Note

Depending on the features of your source system, the administrator can either disable these settings in bulk or use the source system's API.

2. Configure source system parameters

Enter a Task Name, select the Source System, and enter the Source System Email Account, Source System Email Password, and Source System Server Address. We recommend that you use the default settings for other options. Click Next.

image

3. Migration settings

image

Select Folders to Migrate:

  • All Folders: You can exclude specific folders from the migration.

  • Specific Folders: Select only the folders you want to migrate.

Select Emails to Migrate:

  • All Emails

  • Emails in a specified date range

Select Folder Location:

  • Store Separately (unified storage mode, named by email address)

    • A dedicated folder named after the source email address is created in the destination mailbox.

image

  • Merge into System Folders (folder mapping mode)

    • Automatically maps source folders to system folders (for example, "Sent Items" to "Sent").

    • Preserves the structure of custom folders.

image

Migration Time Settings:

  • Start Immediately: Data transfer begins within 2 hours.

  • Start at a scheduled time: Set a custom start time for the migration.

Click Next.

4. Add migration accounts

The system provides the following three methods for adding migration accounts, as detailed in the Select a migration plan section below. Choose the method that best suits your migration strategy and access to source account credentials, then click Add Migration Accounts.

image

If you need to change the migration parameters later, go to Migration Settings > Edit > Edit Migration Configuration, make your changes, and click OK.

image

Migration plans

Click Add Migration Accounts.

image

Choose one of the three plans based on your situation.

image

Key points overview

Plan type

Use case

Key points

Batch migration (with passwords)

The administrator has the passwords for all employee accounts.

  • Requires accurate account mapping (source and destination accounts can be different).

Batch migration (without passwords)

The administrator has only a list of accounts.

  • Requires account names to be identical.

  • Employees trigger the migration by logging in to Alibaba Cloud Mail with their source system credentials.

Employee self-service migration

When a decentralized approach is needed.

  • Employees trigger the migration by entering their source system account and password on the mailbox migration page.

  • Migration portal: Settings > View More Settings > Mailbox Settings > Mailbox Migration.

Method 1: Batch migration (with passwords)

The administrator starts the migration directly by importing a CSV file that contains the source system usernames and passwords for all members.

Summary: The administrator provides the passwords, the system migrates the data automatically in the background, and the process is seamless for employees.

imagePrepare a CSV file with the following three required columns:

Destination account

Source account

Source password

1234@example00.com

1234@example01.com

Halo1234

Use cases

  • The administrator has all employees' source email passwords (or application-specific passwords/delegated access).

  • You want a zero-touch, silent migration for employees.

  • The migration involves complex authentication, such as a Microsoft Exchange delegated account or third-party application passwords.

How it works

The administrator provides the source account and password in a CSV file. The system uses these credentials to fetch data directly from the source system in the background.

Roles and actions

Role

Actions

Key considerations

Administrator

1. Create accounts: Batch-create employee accounts in the Mail admin console.
2. Prepare CSV file: Include three columns (Alibaba Cloud Mail account, source account, source password).
3. Handle special cases: Enter application-specific passwords if required. For Microsoft Exchange, use the delegated format.
4. Upload and import: Upload the file in the admin console to start the migration.


• A single upload supports up to 10,000 entries.
• Verify account mappings carefully to prevent data mismatch.
• Ensure compliance with privacy and data protection policies.

Employee

No action required

• No login or configuration needed.
• No need to provide passwords to anyone other than the administrator.
• Wait for the migration to complete.

Risk assessment

  1. Password validity: Ensure that the provided passwords are valid and unchanged throughout the migration. If a source password becomes invalid, the migration for that account will fail.

  2. Privacy compliance: This mode involves the administrator handling employee passwords. Ensure that the procedure complies with your company's information security policies and legal requirements.

Note

For migrating from Microsoft Exchange with a delegated account (see Set up a delegated account for Microsoft Exchange), we recommend the following format for the migration file:

user2@example.com,superman@example.com/user1,password

Field descriptions:

  • user2@example.com: The Alibaba Cloud Mail account.

  • superman@example.com/user1: The source mailbox in delegated account format (where user1 is the source mailbox prefix, and access is delegated to superman@example.com).

  • password: The password for superman@example.com.

Method 2: Batch migration (without passwords)

The administrator initiates the migration by importing a list of accounts. Employees trigger their own migration by logging in with their source email password.

Summary: The administrator provides an account list. Employees log in with their source system username and password, which automatically starts the migration.

image

Prepare a CSV file with only one column of data:

Migration account

1234@example00.com

Use cases

  • The administrator does not have access to employee passwords, which protects user privacy.

  • You want to start the migration in batches while you minimize manual configuration for employees.

  • Employees can use their source credentials to log in to the new system and agree not to change their source password during the migration.

How it works

The administrator imports a list of accounts to be migrated. When an employee first logs in to Alibaba Cloud Mail, they must use their source system username and password for authentication. A successful login automatically triggers the migration.

Roles and actions

Role

Actions

Key considerations

Administrator

1. Create accounts: When you create accounts in Alibaba Cloud Mail, the email address must be identical to the source email address.
2. Prepare CSV file: Include only one column (Migration account, which is the newly created account).
3. Upload and import: Upload the file in the admin console to enable domain-wide migration.
4. Notify employees: Inform them that they will need to use their source credentials to log in.


• Important: The Alibaba Cloud Mail account name must be identical to the source email account name.
• A single upload supports up to 1,000 entries.
• Once enabled, employees can only log in with their source credentials. Any initial password you set becomes invalid.

Employee

1. Log in to new mailbox: The employee uses their source system username and password to log in to the Alibaba Cloud Mail web client.image
2. Trigger migration: Migration starts automatically after a successful login.
3. (Optional) Change password: The employee can change their password in the new mailbox, which does not affect the migration.

• Do not change the password in the source email system. This will cause the migration to fail.
• If a password change causes a failure, you must go to the "Mailbox Migration" settings to manually update the source password.

Risk assessment

Allowed actions
After logging in to Alibaba Cloud Mail, employees can change their new login password in the web client. This action does not affect the background migration process.

Forbidden actions (High risk)
Do not change the password in the source email system until the migration is complete.

  • Consequence: If the source password is changed, Alibaba Cloud Mail cannot authenticate, and the migration will fail.

  • Remedy: If this occurs, the employee must go to the Settings > Mailbox Migration menu in Alibaba Cloud Mail and manually update the source password for the migrated account to resume the migration.

Method 3: Employee self-service migration

Notify employees to start the migration themselves by entering their source system username and password.

Summary: The administrator creates a migration task for all or selected members. Employees enter their own credentials to start the migration, which gives them control over the process.imageimage

imageUse cases

  • Employees manage their own passwords and prefer not to share them with the administrator.

  • Employees want to schedule their own migration time.

  • When a decentralized approach is needed.

How it works

The administrator first creates the Alibaba Cloud Mail accounts and a migration task. After logging in, employees go to the settings page and enter their source account credentials to authorize the migration.

Roles and actions

Role

Actions

Key considerations

Administrator

1. Create accounts: Batch-create employee accounts in the admin console and distribute initial passwords.
2. Enable feature: Enable the "Domain Migration" or "Allow Members to Self-Service Migrate" feature in the admin console.
3. Notify and guide: Inform employees how to access the settings page to configure their migration.

• No CSV file preparation required.
• No need to collect any account information.

Employee

1. Log in to new mailbox: Log in to the Alibaba Cloud Mail web client by using the initial credentials provided by the administrator.
2. Go to settings: The employee clicks Go to Settings in the pop-up window, or navigates to Settings > View More Settings > Mailbox Settings > Mailbox Migration.image
3. Enter information: Enter the source system username and password to start the migration.

• Ensure that the source password is entered correctly.
• You can monitor the migration progress on the same page.

Related topics

mailbox migration