Migration from IMAP source to Exchange 2013/2016
I. Pre-migration activities
Below you will find the list of key points to be considered:
Step 1: Prepare a clean target Exchange environment in a new Active Directory forest
The following points need to be revised:
Step 2: Prepare domain accounts on the target server
- Create mailboxes in the target environment manually.
- During the mailboxes matching step, you can also set the program to create the mailboxes and the corresponding users automatically.
Please be aware that prior to migration you have to prepare (in the target environment) a mailbox-enabled user account for each user included in the migration.
What is more, if you choose either to manually create the mailboxes or allow the program to prepare them for you, be advised that the account data (such as permissions) will not be migrated.
Step 3: Verify the configuration and rights of the admin account that will be used to connect to the target Exchange server
Make sure that the target admin account is assigned the necessary management roles and that this account is mailbox-enabled.
Verify the following:
- Check if the target admin account has the following roles assigned:
- View-Only Recipients
- View-Only Configuration
- Public Folders*
- Mail Recipient Creation*
- Mail Recipients*
Please note that the Public Folders role is only required if you plan to migrate public folders. Moreover, the Mail Recipient Creation and Mail Recipients roles are required to create new users and mailboxes. Therefore, it's not required to assign them to the admin account if you are migrating data to the mailboxes that already exist on the target server.
- check which roles are assigned to a specific user. To do that, run the Exchange Management Shell on the target server and enter the following cmdlet: Get-ManagementRoleAssignment -RoleAssignee “UserName”, where instead of UserName you need to enter a valid Name or Alias of your mailbox-enabled AD user; or
- check which users are assigned a specific role. To do that, run the Exchange Management Shell on the target server and enter the following cmdlet: Get-ManagementRoleAssignment –Role “RoleName”, where instead of RoleName you need to enter a specific role, e.g. ApplicationImpersonation.
- Access to the target server's EWS service using IP or Domain Name, e.g. https://[Exchange_IP]/EWS/Exchange.asmx or https://[Exchange_Name]/EWS/Exchange.asmx
- If a client connects to EWS from the outside of the local network he needs to have the external EWS URL correctly configured:
- Open the Exchange Management Shell on the target server and check if the ExternalUrl is defined: Get-WebServicesVirtualDirectory | fl
- If there's no address in the ExternalUrl line it needs to be defined. Execute the following script: Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -ExternalUrl https://[Target server's internet name]/EWS/Exchange.asmx
Step 4: Adjust the EWS throttling settings and change the maximum size limit of sent mail to decrease the time of migration processing
Step 5: Prepare source IMAP server settings
Verify the following:
- You have a list of all credentials for mailboxes you want to migrate via IMAP - here is why
- Know your IMAP server address or IP, port and SSL connection support - for example, for Google (whether Gmail or Google Apps) those are: imap.gmail.com, port 993, enabled SSL
- IMAP access is enabled on the source server - see here how to do this for Gmail and Google Apps accounts
Please note that the Mail Recipient Creation role is required to create new users and mailboxes. It's not required if you want to migrate data to the mailboxes that already exist on the target server.
Step 6: Installation of components required to install CodeTwo Exchange Migration (the installation wizard will guide you through this process)
- MAPI CDO (MAPI Client and Collaboration Data Objects, will be installed on all systems except for systems with coexisting MS Outlook x86 older than version 2016, MAPI will be used only if Exchange Server On-Premises is configured as a source)
- .NET 4.0 (required on any system, might be already installed)
Step 7: Installation and activation of CodeTwo Exchange Migration
In the case of migration from IMAP the program can be installed anywhere, e.g. on a workstation outside source and target domains, however, it will most likely work best if installed directly on the target Exchange Server.
Please note that if you are about to migrate from both IMAP source(s) and Exchange Server on-premises, you must install the software in the source Exchange Server environment, preferably directly on the source Exchange Server.
II. Migration process
Step 1: Connect to the source server
Make sure that the software user who runs the migration is a local administrator.
When you start the program, you will see the Dashboard view. Click Create a new migration job link on the How to start card. Select the source server type: IMAP. The create IMAP migration job wizard will open. Set the name of the job and click Next to proceed to the Source mailboxes step. If this is your first migration job, you will need to configure connection to the source IMAP server. Click Add new source connection and a wizard will open. You need to go through these steps:
- Server connection - in this step, you need to choose your IMAP source and some connection settings.
- Throttling - there you can customize the software behavior if you stumble upon throttling issues on the IMAP source server.
- Configuration - this process configures your connection based on the settings provided in the previous steps.
Step 2: Continue the job configuration to provide source mailboxes credentials
After successfully configuring the source connection, you will get back to the Source mailboxes step of the migration job wizard. Now you need to define which mailboxes you want to migrate.
- Prepare a CSV file that contains source mailbox credentials as listed below. Do not worry that much about the CSV format. The CSV import feature lets you adjust the software to the file format used, i.e. you do not need to use a specific fields delimiter - use the one you like, you will be asked by the CSV import feature what kind of delimiter was used in the file.
- Login - required
- Password - required
- First Name - optional
- Last Name - optional
- Display Name - optional
- Click Import from CSV and select your CSV file.
- Configure the software to properly import data from your CSV file.
Step 3: Set the target connection
After successfully configuring the source connection and choosing source mailboxes, click Next to configure the target server connection. In the Target mailboxes step, choose Add new target connection from the Target server drop-down menu. A simple wizard will open.
- In the Server connection step, choose either Autodiscover Exchange Server (default option) to automatically find the proper target server or configure the connection manually.
If you decided to configure the target connection manually, be aware that using an IP address will make granting impersonation rights and creating mailboxes impossible, unless you configure PowerShell Virtual Directory in IIS to allow basic authentication.
- Admin account – provide a valid UPN and password of the account that will access the target server (remember that the admin account must fulfill the requirements specified in I Pre-migration activities, Step 3). Click Next to move on to the Configuration step.
UPN (User Principal Name) is the name of a system user in an email address format. Learn more.
- Configuration – this process configures the target Exchange server connection and checks whether the account provided in the previous step has the necessary roles assigned. If not, the program will attempt to assign them automatically. In such a case, you may be asked to provide the credentials of another account that belongs to the Organization Management role group. This account will not be used to connect to the target server, but only to assign the missing roles.
Once the configuration ends successfully, you will see green check marks. If any errors appear, see Troubleshooting.
After your connection is established, click Finish. You will return to the IMAP job configuration wizard.
Step 4: Pair up source and target mailboxes
Matching the source with the target mailbox can be done in two ways: automatically via the built-in Automatch feature, or manually. Either way, click the Match mailboxes button.
To match manually a single mailbox, click on Click to match target link in the Target user mailbox column and choose most appropriate option for this user. After selecting an option you may be asked to provide further details (e.g. password for newly created users). The available approaches are:
- Create a new user - to create both Active Directory user and corresponding mailbox, using the defaults values that you can also change.
- Choose an existing user from the list - to select an existing user in the target environment that does not have mailbox created yet
- Manually specify the mailbox address - this option should be used in the case you are unable to list the target environment
However, when it comes to matching hundreds of mailboxes, the process may be extremely time-consuming. To automatically set the best available actions for desired users, simply select them on the list (you can use Ctrl+A shortcut to choose all entries) and eventually click Automatch. Select desired options and start the process.
When you have matched all your mailboxes you can continue to configure additional options.
Step 5: Customize all necessary aspects of the migration job
You may configure the following additional options:
- Scheduler - allows you to set the job to be automatically started in desired period of times, so you do not have to control it manually.
- Time filter - is used to exclude items that are older or newer than a particular date
- Folder filter - may completely exclude specific folders from the migration process
- Advanced settings - provides an option to define how many mailboxes should be migrated at same time. This number should correspond to the number of logical processors. You can also define the maximum size of items to be migrated.
Step 6: Start the migration
Move on to the JOBS tab and click Start on the toolbar to begin the migration.
The migration processing time depends on several different factors, e.g. the number of mailboxes and items, the speed of internet connection, EWS throttling settings. We have published more details here.
Step 7: Check if the number of migrated items in the target mailboxes matches the source server mailboxes
If you notice any missing items in the Target mailbox, restart the migration by using the Rescan feature.
Please be aware that the program does not migrate some specific folders at all. Those are i.e. Sync Issues or ones created while putting a mailbox on a litigation hold.
If any problems appear during the migration process they will be indicated on the dashboard, pointed on the reports and logged in the log files. Check out the software's diagnostics.
Step 8: Check if there are any new items in the source mailbox after migration
Once the migration is finished and you have noticed that some new items appeared in the migrated source mailbox, just restart the migration by using the Rescan feature. Please keep in mind that the Rescan feature uploads only new items, not the changed ones.
III. Post-migration cleanup
Step 1: MX records
If you have your own domain pointed at source server you probably want it now to point at the new server. Change MX records with your domain registrar to enable mail flow to new servers instead of the old ones. Please note that this process may take several hours.
If any new items appear in a source mailbox while the MX records are being changed, it is possible to migrate them after the records' migration process is completed. It can be done by using Rescan feature.