Continuous Microsoft 365 to IMAP backup with JustForwarding
This article explains how to copy new Microsoft 365 mail to an IMAP mailbox, such as cPanel or Dovecot, as a second copy.
Limitations
- JustForwarding copies new mail only. It does not copy existing history. For history, use MailMigrata.
- Each pair copies in one direction. The reverse direction (B to A) is a separate pair with its own trial.
- JustForwarding checks the source about every 30 minutes. It is not real-time.
- This is not a PST export, a litigation hold, or a full historical archive.
- The destination must accept IMAP APPEND. Receive-only servers reject every write.
Prerequisites
- A licensed Microsoft 365 (Exchange) mailbox with IMAP or OAuth access. A work or school account is not a personal Outlook.com account. Use OAuth if your administrator blocks basic authentication.
- A destination IMAP host that accepts APPEND, such as cPanel, Dovecot, or Fastmail.
- The destination host name, port 993, and TLS details.
Mapping
- Map the Microsoft 365 Inbox to the IMAP Inbox, or to a folder such as
365-backup/. - Each shared mailbox needs its own pair.
Steps
- Optional: run MailMigrata once to copy existing history to the IMAP mailbox.
- Connect Microsoft 365. See Connect Microsoft 365.
- Connect the destination. See Connect generic IMAP.
- Create a one-way pair from Microsoft 365 to IMAP and start it.
Stopping the pair does not delete messages already copied.
Troubleshooting
- Destination refuses every message: The server does not allow APPEND, or the mailbox is over quota. Fix the destination account.
- Backups appear in Outlook: Someone enabled the reverse direction (IMAP to Microsoft 365). Keep one direction only.
- You need a PST or legal hold: JustForwarding does not create either.