mccb
Version 2.1.0

Migrate mailboxes to a new server, in bulk

Mail, calendars and contacts, from PST files, Exchange, Microsoft 365, Google or IMAP. Free and open source, on your own server.

  • PST and OST
  • mbox, Maildir, EML, MSG
  • Exchange (EWS)
  • Microsoft 365
  • Google Workspace
  • IMAP
  • JMAP
  • CalDAV and CardDAV
  • IMAPMail
  • CalDAVCalendars and tasks
  • CardDAVContacts
  • JMAPMail and contacts
  • ExchangeEverything, with tasks
Demo, fictional data
The list of migrations: one row per mailbox, with its source, its destination, its state and its progress.The list of migrations: one row per mailbox, with its source, its destination, its state and its progress.

In production

More than 500 GB of mail already migrated without errors, with calendars and contacts.

Pause, stop, resume. No duplicates.

Pause, stop, crash or restart: a resume checks the target first and never copies an item twice.

The panel of a mailbox being imported, with the Pause and Stop buttons and the progress of mail, calendar and contacts.The panel of a mailbox being imported, with the Pause and Stop buttons and the progress of mail, calendar and contacts.

One form for every source

A file on the server, Exchange, Microsoft 365, a whole tenant or any IMAP server, to the mailbox it goes to.

The From part of the New migration form: file, Exchange, IMAP, Microsoft 365 and Microsoft 365 tenant.The From part of the New migration form: file, Exchange, IMAP, Microsoft 365 and Microsoft 365 tenant.

A report for every mailbox

What was sent and what is on the server, for mail, calendars and contacts, with a sample of messages read back and compared.

The report of a finished mailbox: mail, calendar and contacts sent and found on the server, no errors, and a sample check of 20 out of 20 mails.The report of a finished mailbox: mail, calendar and contacts sent and found on the server, no errors, and a sample check of 20 out of 20 mails.

Also included: dry run, folder mapping, allowed hours, bandwidth limit, final resync, repair of damaged mailboxes, duplicate removal, a command line and notifications.

See all features

Running in four commands

Open http://<host>:22362 and sign in with the printed password. It is shown once. Details are in the docs.

$ mkdir mccb && cd mccb
$ curl -fsSLO https://raw.githubusercontent.com/selfhostr/mccb/main/docker-compose.yml
$ docker compose up -d
$ docker compose logs web | grep -A2 "Admin password"

Read this before you migrate.

  • Exchange, Microsoft 365 and Google are tested on simulated servers only
  • One administrator, one host
  • A one-way copy, not a sync
  • Plain HTTP: put it behind a reverse proxy
What it does not do