Friday, December 25, 2009

Migrate from POP/IMAP accounts to Exchange 2010

At this end of the year we have two projects where we have to migrate the clients from open source email systems to Exchange 2010. They are both using IMAP as email access protocol and we have to import their old emails into the new system. There are two ways to do that – the hard way using email client features and the easy way, using server tools.
I won’t discuss the hard way, since it’s easy in theory and difficult in practice involving a lot of helpdesk work. I will talk about the „easy way” and I will show how using just an easy tool from Microsoft you can import all your emails stored on the old email server.
We will use a tool from Microsoft called „Microsoft Transporter”. This tool was designed for Exchange 2007 and there is no plan to release one for Exchange 2010. So there is a catch here, to use the tool first of all you have to install an Exchange 2007 server in your organisation with Client Access Server role and Mailbox role. After that you have to create a CSV file with all the mailbox information and import this file into Microsoft Transporter, from there you can choose which accounts will be migrated, time range of the data to be migrated and so on. The detailed steps to have a successful migration are:
  1. Install an Exchange 2007 SP2 server within your network as the first Exchange server into organization;
  2. Install CAS and Mailbox role on the Exchange 2007 server;
  3. Install on the Exchange 2007 server the “Microsoft Transporter Tool” selecting only Transporter for Internet Mail;
  4. On the Exchange 2007 server do the following tasks:
    • Run on command prompt “Net user /domain” to get the group membership of the logged account;
    • Add the account that will do the migration to Exchange Recipient Admin group if it’s not already a member;
    • Run on Exchange Shell: “Get-ClientAccessServer |select name,distinguishedname |fl” to get the Distinguished Name of the CAS Server;
    • Run on Exchange Shell: “Add-ADPermission –Identity <fqdn CAS> -User -<user> ExtendedRights ms-Exch-EPI-Impersonation” to add Exchange Impersonation rights to the Exchange 2007 CAS for the user that will do the migration.
  5. Create mailboxes for all the users that you will migrated on the Exchange 2007 server
  6. Create an csv file with the following columns:
    • SourceIdentity: The e-mail account that the user has in the POP3 Server;
    • SourceServer: The name or IP of the POP3 Server;
    • SourceLoginID: the account user name used to connect on the POP3 server;
    • SourcePassword: the user’s password;TargetIdentity:
    • the Exchange Server 2007 identity will receive the data from the previous POP3 Server settings
  7. Import the CSV file into the Transporter Tool using Add Mailboxes command;
  8. In the Transporter Tool, select All Mailboxes from the main screen of the tool and select “Migrate Selected Mailboxes”;
  9. Select IMAP or POP as the protocol;
  10. Select "All emails" on data ranges question then start the migration process;
  11. Wait until all the emails are migrated and review all warnings or errors;
  12. Now all the emails are stored on the Exchange 2007 server and we have to migrate them to the Exchange 2010 server (s);
  13. Install the Exchange 2010 server(s) with roles according to your new email organization design.
  14. Use upgrade procedure from Exchange 2007 to Exchange 2010 from Microsoft Support site to migrate all your email accounts and to remove the Exchange 2007 server.
If you have questions or something is going wrong please write comments to this post.

No comments:

Post a Comment