Help · Email migrations

Migrating from an IMAP server

Move email from any IMAP host into Microsoft 365: the address list, per-mailbox passwords, and keeping within the host's connection limits.

Last updated

This guide moves email from an IMAP mail host (cPanel, Zimbra, Dovecot, a hosting provider's mail and so on) into Microsoft 365 mailboxes. IMAP carries only email, so calendars and contacts need moving another way.

The steps are the same as for a tenant-to-tenant move, so this page covers what's different. For the whole path, see Migrating mailboxes from Microsoft 365 to Microsoft 365.

Before you start #

  • The IMAP connection is added and tested (how) on the customer's Connections: the server, port and security, and how Mygration signs in:
    • Admin / master account: one account opens every mailbox. No user passwords needed.
    • Each mailbox's own password: for hosts with no admin access. The passwords come with the mailbox list.
  • The customer's Microsoft 365 tenant is connected as the destination. See Connecting a customer's Microsoft 365 tenant.

1. Create the migration and the batch #

  1. Open the customer and click New migration.
  2. Pick the IMAP connection as the source and the Microsoft 365 tenant as the destination. Click Next.
  3. Tick Email (an IMAP server holds only mail) and click Next: the first batch.
  4. Choose what to copy. See Batch filters.
  5. Add who moves (next section), then name the batch and set Mailboxes at once.

Tip

Small hosts often limit how many connections one account or address may open. Keep Mailboxes at once at 10 or fewer; the field reminds you. If a host still refuses connections, lower it on the batch's Settings tab.

2. The address list #

An IMAP server has no directory to read, so you give Mygration the list. On Who moves (or Add mailboxes on the batch page), Paste a list, one mailbox per line, or upload a file.

How addresses are formed One line With per-mailbox passwords
Map to a destination domain old address old address,password
Enter each destination address old address,new address old address,new address,password

For example, with Enter each destination address and per-mailbox passwords:

jane@oldhost.example,jane@copperlinebuilders.example,Password1
ben@oldhost.example,ben@copperlinebuilders.example,Password2

Pasting from Excel works too. The preview shows each old address beside its new one, and "(password set)" where a line has a password.

For names, job titles and other account details, click CSV template, fill it in and Upload CSV. Its SourcePassword column takes each mailbox's password. Without names, they come from the address (jane.doe@ becomes "Jane Doe").

Adding a mailbox that's already in the batch updates it rather than adding it twice.

Note

Passwords are stored encrypted with the batch. When you mark the batch complete, tick Clear stored passwords to remove them.

3. Destination accounts, passes and cutover #

From here it's the same as any mail batch:

  1. Destination accounts: check, and create the missing accounts.
  2. Pre-stage older mail while people keep working. See Pre-staging big mailboxes.
  3. Switch MX to Microsoft 365 (the batch's Cutover tab says what to change), and set up Outlook and phones.
  4. Run a full pass: it copies everything since and retries what failed.
  5. Assign licenses within 30 days of creating the accounts, then take the report and mark the batch complete.

How folders land #

Every folder comes across with its email and attachments, read, flagged and replied state, importance and original dates. Inbox, Sent, Drafts, Trash, Junk and Archive go into their Microsoft 365 equivalents.

What isn't copied #

  • Calendars, contacts and tasks.
  • Server-side filters, automatic replies, forwarding and signatures. There are no Permissions or Rules tabs for an IMAP batch.
  • Aliases: add them to the new mailboxes by hand.
  • Mail kept only on people's computers: POP downloads, local folders and PST files.
  • Shared folders: copy them with a batch of their own. See Public folders into shared mailboxes.
  • Items over 150 MB.