The Wild

Migrate Zimbra to Office 365: Step-by-Step Guide

· 5 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating from Zimbra to Microsoft 365 (Office 365) moves your email, contacts, calendars, and tasks to a cloud-based platform with familiar tools like Outlook and Teams. This guide covers the most common migration path—using Microsoft's native IMAP migration tool—which works for most Zimbra setups. Before you start, you'll need admin access to both Zimbra and Microsoft 365, and you should have your domain verified in Microsoft 365 (you'll add a TXT record to your DNS).

What You'll Need

  • Administrator credentials for your Zimbra server (web admin console).
  • Global admin credentials for your Microsoft 365 tenant.
  • Access to your DNS provider to verify domain ownership.
  • List of all user email addresses to migrate.
  • Optional: A test user account in both systems to validate the process.

Step-by-Step

  1. Verify your domain in Microsoft 365. In the Microsoft 365 admin center, go to Setup > Domains, add your domain, and follow the prompts to add the TXT record to your DNS. Wait for verification (can take up to 72 hours, but usually minutes).
  2. Create user mailboxes in Microsoft 365. In the admin center, go to Users > Active users, add each user with the same email address as in Zimbra. Assign licenses (e.g., Microsoft 365 Business Basic or Exchange Online Plan 1).
  3. Enable IMAP on Zimbra. In Zimbra Admin Console, go to Home > Server Settings > IMAP/POP and ensure IMAP is enabled. Note the server hostname and port (default 993 for SSL).
  4. Create an app password for Zimbra (if using 2FA). If your Zimbra users have two-factor authentication, you'll need to generate app-specific passwords for each user, or temporarily disable 2FA for migration.
  5. Prepare a CSV file for migration. Create a CSV with columns: EmailAddress, UserName, Password. For each user, the EmailAddress is their Zimbra address, UserName is the same, and Password is their Zimbra password (or app password). Save as migration.csv.
  6. Create an IMAP migration endpoint. In the Exchange admin center (EAC), go to Migration > Migration endpoints, click New, choose IMAP, and enter your Zimbra server hostname (e.g., mail.yourdomain.com). Use port 993 and check SSL.
  7. Create a migration batch. In EAC, go to Migration > Migration batches, click New, select IMAP migration, upload your CSV file, and select the migration endpoint you created. Choose the target delivery domain (your Microsoft 365 domain).
  8. Start the migration. Review the settings, then click Start. The migration will begin syncing folders, emails, contacts, and calendar items from Zimbra to Microsoft 365.
  9. Monitor the migration. In the EAC, watch the batch status. You'll see counts of synced items and any errors. Wait for the status to show Synced.
  10. Switch DNS MX record. Once migration is complete and you've tested, change your domain's MX record to point to Microsoft 365 (e.g., yourdomain.mail.protection.outlook.com). Also update SPF record to include include:spf.protection.outlook.com.
  11. Complete the migration batch. In EAC, after MX switch, click Complete on the migration batch. This finalizes and stops syncing.
  12. Recreate Zimbra aliases and distribution lists. In Microsoft 365, add any email aliases to user mailboxes and create distribution groups or Microsoft 365 groups to match your Zimbra lists.
  13. Set up Outlook clients. Users can now configure Outlook with their Microsoft 365 account. Their old Zimbra data should appear in their new mailbox.

Common Mistakes

  • Not verifying domain before migration: If the domain isn't verified, mail flow won't work correctly.
  • Using wrong IMAP port: Zimbra often uses 993 for SSL, but some setups use 143 with STARTTLS. Check your Zimbra config.
  • Forgetting to enable IMAP: If IMAP is disabled, the migration endpoint will fail to connect.
  • Migrating while users are actively sending mail: This can cause missing items. Schedule migration during off-hours or inform users to avoid changes.
  • Not creating a test user: Always test with one mailbox before migrating all users.
  • Overlooking folder size limits: Large mailboxes may hit Microsoft 365 limits (50 GB for Exchange Online). Archive or split if needed.

Tips

  • Use a staged migration: migrate a small pilot group first, verify, then proceed.
  • Communicate with users: let them know about the migration window and any temporary slowness.
  • Keep Zimbra running until you're fully satisfied with the migration.
  • Use the Microsoft 365 Migration tool's built-in reporting to see per-user progress.
  • If you have many users, consider using PowerShell scripts to automate user creation and CSV generation.
  • Back up your Zimbra data before starting, just in case.

Troubleshooting

  • Connection fails: Check that IMAP is enabled, the hostname is correct, and the port is open (test with Telnet or a client like Outlook).
  • Authentication errors: Ensure passwords are correct. If 2FA is enabled, generate app passwords. Also check if Zimbra requires a specific login format (e.g., domain\user).
  • Some folders not syncing: IMAP migration may skip certain folders like Junk or Trash if they're empty. Also check if folder names contain unsupported characters.
  • Mail flow issues after MX switch: Verify DNS propagation (use nslookup or online tools). Ensure SPF record includes Microsoft 365.
  • Migration batch stuck: If a batch is stuck, you can stop and restart it. Check the error logs for specific messages.
  • Users can't log in to Outlook: Ensure their Microsoft 365 license is assigned and they're using the correct UPN (usually their email address).

Frequently Asked Questions

Will my Zimbra contacts and calendar items migrate?

Yes, IMAP migration includes contacts and calendar items if they are stored in the mailboxes (e.g., in the Contacts and Calendar folders). However, some items like tasks may not sync perfectly; it's best to export them separately if critical.

How long does the migration take?

It depends on the amount of data and server speed. Typically, a few hours to a couple of days for small to medium organizations. Microsoft's tool can migrate up to 500,000 items per mailbox per batch.

Can I migrate while users are still using Zimbra?

Yes, the migration tool will sync changes during the process. However, to avoid missing any final changes, it's recommended to complete the migration after hours or during a maintenance window.

What happens to my Zimbra server after migration?

You can keep it running as a backup or decommission it once you're confident everything is working in Microsoft 365. Remember to update DNS records to point to Microsoft 365.

Do I need to recreate distribution lists in Microsoft 365?

Yes, distribution groups from Zimbra do not automatically migrate. You'll need to recreate them as Microsoft 365 groups or distribution lists in the admin center.

Can I migrate shared mailboxes?

Yes, but you'll need to create shared mailboxes in Microsoft 365 and then migrate the data using a similar IMAP process, or use a third-party tool for more complex scenarios.