Move email hosting to Office 365 with IMAP migration

How to migrate from IMAP to Office 365 (Microsoft 365)

IMAP migration sources

IMAP is short for Internet Message Access Protocol.

Here’s an example list of possible source servers that allow for migration via IMAP:

  • Google Workspace (G Suite)
  • HCL Notes (IBM Notes, Domino)
  • Kerio Connect
  • Zimbra
  • Zarafa

It is also possible to perform IMAP migration from other sources like, for example, hosted Exchange, but for hosted Exchange there is a better protocol to go with – EWS. The catch there, however, is that you need to get full access admin rights to your Exchange, and this can be limited by some hosts.

Limitations of IMAP migration

When performing this kind of migration, it is good to be aware of possible roadblocks that can appear along the way:

  • The only supported mailbox item for migration is email. Contacts, calendar entries or tasks won’t be transferred.
  • Maximum supported email size is 35 MB.
  • Limit of 500 000 items per mailbox. If the item count exceeds this number, oldest emails won’t be migrated.
  • Archiving policies and messaging records management (MRM) are not supported. To avoid problems, Microsoft recommends disabling all policies before migration.

Before the migration starts

One of the universal truths about migration is that much of the work is preparation. Before you start your migration project, you need to first:

  • Pick a Microsoft 365 plan that suits your needs, and create a new Microsoft 365 tenant.
  • Find out what the FQDN of your source server is.
  • Prepare a CSV file which lists email addresses, usernames and passwords for mailboxes you are about to migrate. You will need this file to create a migration batch later on. It’s a good practice to reset users’ passwords for this purpose, instead of asking them for their personal passwords.
    The CSV file should include the following headers: EmailAddress, UserName, Password.
  • An important step, yet often overlooked, is communication. Migration from an IMAP source to Microsoft 365 is not only about changing your email hosting service. It’s also about changing one of basic tools people in your company use every day. Think about how this change can affect users and let them know what to expect.
  • (Optional) Migration is always a good moment for some cleaning-up. If you advise users to delete unnecessary items, not only will you speed up the migration process, but also declutter mailboxes.

IMAP migration guide

To perform the IMAP migration, follow the steps below:

  1. First, add your custom domain to Microsoft 365. To do that, go to Microsoft 365 admin center > Settings > Domains and click Add domain. It’s best to add the domain at this point, so that all newly created users have this domain in their primary email address.
Add custom domain
  1. In your Microsoft 365 tenant, create all mailboxes (users) to match the mailboxes on your source IMAP server. This article shows possible ways to do that.
  2. In the Exchange admin center, go to Migration and click Endpoints.
Exchange admin center migration endpoint
  1. To add your IMAP migration endpoint, in the Select the migration type field, choose IMAP. In the next filed, provide your migration endpoint name, and in IMAP Server, insert the source server’s FQDN. After you fill in all required fields, click Create.
Add migration endpoint
  1. After creating the endpoint, back in Migration batches, click Add migration batch.
Add IMAP migration batch
  1. A migration batch is a collection of users that will get migrated in one go. Follow the simple wizard to configure the batch. You will need to choose IMAP as the migration type, add an endpoint created in step 4, and upload the CSV file with listed users (mentioned in Before the migration starts).
adding IMAP migration batch

After IMAP migration

There are some additional steps to follow after the IMAP migration is complete:

  • Since IMAP to Office 365 migration supports only emails, you can advise your users to manually recreate other mailbox items, like contacts, tasks and calendar items.
  • One of the crucial steps is verifying if all necessary items were migrated successfully.
  • Finally, after all steps are done, you need to change DNS records to point to Office 365 (instead of your source server).

Ease your migration with CodeTwo

While IMAP migration is a built-in option, you can significantly ease the process with the use of CodeTwo migration tool.

CodeTwo Office 365 Migration gives you the following benefits:

  • Automatic creation of target mailboxes and assigning licenses.
  • Set up & forget deployment. Follow an easy wizard to configure the migration process and let it run in the background.
  • Advanced options. Use time & folder filters to, for example, migrate only the newest items, or exclude items you won’t need in the new environment.
  • Scheduler option to run migration only during certain periods, making the process invisible to end-users.
  • Automated reports and notifications that let you know what’s going on with your IMAP migration.
  • Delta migration that lets you move emails, which appeared after the initial migration was finished, lowering the risk of missing items.
  • Free 30-day trial to see how the tool works.
  • 24/7 support.

See CodeTwo Office 365 Migration in action

See the detailed migration plan from IMAP to Microsoft 365 with CodeTwo

Tools for Exchange Server

Recommended articles

How to migrate from Exchange Server 2016/2019 to Microsoft 365

How to migrate from Exchange Server 2016/2019 to Microsoft 365

Migrating Exchange data to the cloud is not rocket science – explore your options and launch the migration stress-free. As you may already know, Exchange Server 2016 and 2019 have reached end of life and are no longer officially supported by Microsoft. If your organization still uses either of these platforms to manage email, contacts, calendars, and tasks, keep in mind that: Your environment may become vulnerable to newly discovered security threats – Microsoft will no longer provide security updates for Exchange 2016 and 2019 (unless you’ve enrolled in the Extended Security Update program, which ends in October 2026). Your emails may get blocked – Microsoft has started to throttle and block emails sent from unsupported Exchange Server versions to Exchange Online (as I covered in this article). That said, migrating to a supported platform is now the only viable long-term option for keeping your organization’s email environment secure, supported, and fully operational. If your organization wants or needs to keep things on‑premises (and continue using Microsoft’s solutions for that), upgrading to Exchange Server Subscription Edition (SE) is the only path forward. But given Microsoft’s clear preference for its cloud services – evident in the faster rollout of new features and the many security capabilities available exclusively in Microsoft 365 (Office 365) – now is a great time to leave your on‑prem environment behind and migrate to Exchange Online as part of Microsoft 365. While switching over to a new platform might seem like a rough ride, I’ll show you some easy ways to follow when migrating mailboxes from Exchange Server 2016/2019 to Microsoft 365. How to prepare for email migration to Microsoft 365 Before you start the migration process, you need to make sure your environment is ready for the move. For this purpose, you can use this guide in the Microsoft 365 admin center – it will help you connect your organization to Microsoft 365 and integrate your existing user accounts with Microsoft Entra ID. Microsoft also recommends completing the steps below: Set up an SPF record to determine valid email sources for your organization’s Microsoft 365 domain. Set up the Exchange Online Protection service as a means of protection against spam and malware. If you’re behind on updates, make sure to install the latest Cumulative Update (CU). And here is my quick, less obvious Microsoft 365 migration checklist: Verify if your software will work in Microsoft 365 (especially when it comes to server software). Microsoft 365 migration might be the time you learn that there is crucial legacy software that half the company uses and which is hard to replace. Encourage the whole company to clean up projects. It’s much easier to do this before the migration and start fresh. Gather as much information about your on‑premises environment as possible. For example, you might need to recreate access roles and permissions from scratch in the cloud or set up mail flow rules. Without prior research, it will be much more difficult. Verify if you need to migrate service accounts. There can be a lot of them on‑premises and in most cases, you won’t need them after the move. Review mailbox size limits in Exchange Online before migration to see which licenses you’ll need and whic
How to start remote PowerShell session to Exchange or Microsoft 365

How to start remote PowerShell session to Exchange or Microsoft 365

One of many features of the PowerShell command line tool is its ability to connect with and manage the Exchange Server remotely. The procedure described below applies to the classic on-prem Exchange server and to the Microsoft 365/Exchange Online version.
Persistently vulnerable Exchange Servers: prepare for email throttling & blocking

Persistently vulnerable Exchange Servers: prepare for email throttling & blocking

Exchange Online can throttle or block emails sent from unsupported Exchange Servers. Here's how to avoid it.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

CodeTwo sp. z o.o. sp. k. is a controller of your personal data.
See our Privacy Policy to learn more.