Move Zimbra Mailboxes to a New Server: Zextras or imapsync?

For two mailbox servers in the same Zimbra infrastructure, use Zextras Powerstore’s doMailboxMove. For a separate Zimbra installation, use Zextras Backup when you need a broader migration of mailbox and collaboration data; use imapsync when you need to copy email over IMAP. These paths do different jobs, so choose based on whether the destination is part of the same Zimbra system and which data users must keep.

The steps below focus on an email-only migration with imapsync. They use a pilot mailbox, a dry run, a presync, and a final sync after mail flow changes. As of October 10, 2026, the imapsync site lists release 2.314; confirm the version and options on the official site before running commands.

Choose the migration path before copying data

Same Zimbra infrastructure: Zextras documents zxsuite powerstore doMailboxMove for moving one mailbox or a domain’s accounts between mailbox servers within the same Zimbra infrastructure. It is not a generic command for copying accounts into a separately installed Zimbra server. Check available space, active operations, and the command’s stage order before running it; the operation can put the mailbox into maintenance mode during the account stage. See the Zextras Powerstore mailbox-move reference.

Separate Zimbra installation, full data: Zextras Backup supports restoring mailbox items on other servers. Zextras’ migration article says the former Zextras Migration Tool is no longer available and documents a Backup-based path. That article dates from 2021, so verify current compatibility, licensing, and syntax for your installed releases with Zextras before following it. Its scope includes items such as email, contacts, calendars, tasks, preferences, and some settings, while server configuration still needs separate planning. Start with the Zextras migration procedure and the current Zextras Backup documentation.

Separate IMAP endpoints, email only: imapsync copies messages and folders through IMAP. It does not provision Zimbra accounts or migrate calendars, contacts, shares, server settings, or LDAP configuration. Use it only when the destination accounts already exist and email is the intended scope. The imapsync Zimbra FAQ says basic credentials normally work with Zimbra.

Prepare the source, destination, and mailbox list

Install imapsync from its official download and documentation site on a machine that can reach both servers. Confirm the source and destination IMAP hostnames, TLS certificates, network routes, authentication method, and permitted IMAP connections with the administrators. Avoid disabling certificate checks to work around a TLS error; fix the hostname, certificate chain, or trust configuration.

Create destination accounts before copying. Make sure their quotas can hold the source mail, and decide whether users will continue receiving mail on the old server during presync. Keep a mapping of each source mailbox to its destination mailbox. Use protected credentials; do not paste real passwords into a shared terminal, ticket, or shell history. Migration logs can contain mailbox names and message details, so restrict access to them.

A migration planning screen compares source and destination IMAP servers and shows selected test mailboxes.
Illustration of the source and destination servers and a small set of pilot mailboxes to migrate first.

Run an imapsync migration in controlled passes

  1. Check both IMAP connections. From the host that will run imapsync, confirm that each server resolves to the intended endpoint, accepts the configured TLS connection, and authenticates the test account. A successful webmail login alone does not prove that IMAP is enabled or reachable. If authentication fails, check the full login name, account state, IMAP policy, and any admin-auth configuration before changing server-wide settings.
    A terminal-style screen lists source and destination IMAP checks with TLS, certificate, connection, and account statuses.
    Illustration of the checks to complete for both IMAP endpoints before copying mailbox data.
  2. Preview folder mapping with a dry run. Use one test account and review the folder names imapsync proposes. Its Unix tutorial recommends --automap, --justfolders, and --dry for the first run with your data; dry mode tests logins and folder mapping without making a real copy. A command template is:
    imapsync \
      --host1 imap.old.example --user1 pilot@old.example --password1 'SOURCE_SECRET' \
      --host2 imap.new.example --user2 pilot@new.example --password2 'DESTINATION_SECRET' \
      --automap --justfolders --dry

    Replace example values only in a protected execution method. Review the imapsync tutorial for platform-specific examples. If folders such as Sent or Archive map incorrectly, correct the mapping before a real transfer; the tutorial documents --f1f2 for explicitly pairing folder names.

    A dark terminal mockup shows a dry-run folder preview mapping Inbox, Sent, Drafts, and Archive between servers.
    Illustration of a dry-run folder preview; check every mapping before allowing message transfer.
  3. Copy one pilot mailbox for real. Remove --dry and --justfolders, keep the source and destination addresses limited to the pilot account, and run a real sync. Inspect the log for failed appends, skipped folders, authentication errors, or unexpected folder names. Sign in to the destination and spot-check old, recent, sent, flagged, and attachment-bearing messages. Do not proceed to a bulk run until the pilot result matches your requirements.
    A mailbox sync mockup shows one pilot account, source and destination endpoints, and a transfer progress bar.
    Illustration of a single-mailbox pilot sync, which should be reviewed before scaling up.
  4. Presync the remaining accounts. Run each mapped source-to-destination pair while the old server is still authoritative. The official imapsync site describes transfers as incremental, so a later run can catch messages that arrived after an earlier pass. For many mailboxes, use a carefully protected account list and the official bulk migration examples; do not place passwords in a broadly readable CSV. Begin with a small batch and watch server load, throttling, logs, and destination quota before increasing concurrency.
    A migration account list pairs example source mailbox addresses with matching destination accounts.
    Illustration of a source-to-destination mailbox mapping list for controlled batch processing.
    A terminal log shows an incremental presync finding and transferring new messages for multiple accounts.
    Illustration of a later presync catching messages that arrived after an earlier pass.
  5. Change mail flow, then run the final source-to-destination sync. Plan MX and any webmail or autodiscover changes separately from mailbox copying. After cutover, keep the old server available and repeat the same source-to-destination sync to capture mail delivered there during DNS propagation. Do not run a reverse sync casually: imapsync is not designed to maintain two active accounts in both directions, and concurrent user activity on both servers can create conflicts. Continue checking the old server until delivery there has stopped.
    An MX cutover timeline shows preparation, an update, propagation, and completion between old and new mail servers.
    Illustration of an MX cutover timeline; keep the old server available for a final catch-up sync.
  6. Verify the destination before retiring the source. Compare folder lists and message counts, then open representative messages and attachments in the destination. Review imapsync’s complete log and investigate errors rather than assuming a successful process exit means every item transferred. Ask users to confirm important folders and recent mail. Keep the old server and a recoverable backup until verification and retention requirements are satisfied.
    A verification panel compares source and destination folder counts and shows completed checks in a migration log.
    Illustration of a post-migration check comparing folders, message counts, and log status.

What success looks like—and what it does not prove

A clean run means the accounts connected, folders were mapped as intended, and the log reports no unresolved transfer errors. Matching counts and spot checks give stronger evidence than a success banner alone. They still do not prove that calendars, contacts, shares, or Zimbra configuration moved; those are outside an IMAP-only copy. If non-email data matters, stop and use a supported Zextras Backup migration plan or another appropriate export/import method.

For additional caution about duplicate handling and safe restores, read imapsync’s good practices. Do not use exact-mirror deletion options on an active destination unless you intend destination-only messages or folders to be removed.

Leave a Comment

How to