Documentation

Migrata Systems help

Continuous Microsoft 365 to IMAP backup with JustForwarding

Some teams run a Dovecot or cPanel box and want new work mail to arrive there as a second copy. This guide sets up the A→B direction from Microsoft 365 to IMAP, and it explains what the result is not. A PST, a legal hold, and a full archive are different promises, so the page names each one as out of scope.

What You’ll Learn

  • You will learn how to map every Microsoft 365 folder onto a matching folder on the IMAP side.
  • The destination must support APPEND, because a write succeeds only when the far side accepts it, as the guide explains.
  • The reverse flow from IMAP back to Microsoft 365 is usually the wrong choice for a backup, and the page shows why.
  • Shared mailboxes become extra pairs, so each shared mailbox needs its own connection pair inside the job.
  • The older history reaches the IMAP box when you run MailMigrata first, so the guide shows that order.

JustForwarding copies new Microsoft 365 mail to another IMAP mailbox on a repeating schedule that you choose yourself. That scheduled job is not a legal hold, not a PST file, and not a full historical archive. MailMigrata copies IMAP mail and leaves the source in place unless you choose otherwise, which is why you should run it first for the past.

Microsoft 365 sources need a licensed Exchange mailbox before any connection to them can work at all. The licence type matters here, because a work or school account is not a personal Outlook.com account. You should prefer OAuth whenever an administrator blocks basic authentication, because the blocked method cannot carry the connection.

What you need

  • A licensed Microsoft 365 mailbox that can use IMAP or OAuth is the first requirement for the source side.
  • The destination IMAP host must accept APPEND, and cPanel, Dovecot, Fastmail, or a similar service all qualify.
  • Before you connect it, you need the exact host name, port 993, and TLS details for that endpoint.

Map

JustForwarding maps the Microsoft 365 Inbox onto the IMAP Inbox, or onto a folder such as 365-backup/ on that host. Shared mailboxes become extra pairs, so each shared mailbox needs its own pair of connections in the job.

Traps

The destination IMAP server must accept APPEND, because a receive-only server rejects every write that JustForwarding sends. The B→A direction copies backups back into Microsoft 365, and that reverse flow is usually wrong for a backup. Stopping the pair does not delete what already copied, so the earlier messages stay where they landed. You can connect the 365 mailbox with Connect Microsoft 365 and then connect the destination with Connect generic IMAP, following both guides.

Common problems

The IMAP destination refuses every message that JustForwarding tries to write, so the copy never arrives. The receiving server must allow APPEND, because a receive-only host or a mailbox over quota fails the write every time. You should fix that account before you blame the pair, since the pair only writes what the server accepts.

Backups appeared inside Outlook because someone turned on the B→A direction for that pair. You should keep one direction only, Microsoft 365 → IMAP, so the backup never flows back into the source mailbox.

You needed a PST file or a legal hold, and this setup is neither one. JustForwarding copies new IMAP messages only and never creates a litigation hold or an export file for you.

If you also need the past, you should run MailMigrata onto the IMAP box once and let it finish. JustForwarding should keep running afterwards, because each new work message still needs a copy outside Microsoft 365.