Connect Microsoft 365 to JustForwarding
One side of your live pair runs on Exchange Online, and this guide shows you how to connect it. You will license that mailbox, choose work or school OAuth, and keep the identity separate from a personal Outlook.com account.
What You’ll Learn
- The first lesson explains why an unlicensed mailbox cannot work, because Exchange needs a license before it serves mail.
- The sign-in steps show how to use work or school OAuth instead of a password prompt, and they explain why that change matters.
- Shared mailboxes become extra pairs, and the rule is that each one needs a separate connection of its own.
- Understanding why A→B does not copy replies that only exist on B saves confusion when a reply is missing later.
- The troubleshooting part explains what AADSTS and "mailbox not found" actually mean when a sign-in attempt fails.
You should use Microsoft 365 whenever one side of a live pair is Exchange Online, and you should license that mailbox first. OAuth is the preferred sign-in path for work or school accounts, because IMAP basic authentication is often blocked.
JustForwarding copies new messages only after the pair starts, so your history is not included. Older mail stays in MailMigrata, and MailMigrata copies IMAP mail without deleting the source unless you choose that option.
A work or school account is not a personal Outlook.com account, so you must choose the correct login type.
What you need
- Your Exchange mailbox must carry a license, because an unlicensed user has no mailbox and no way to receive the pair.
- You need admin consent from your tenant when your organization requires it, because that approval lets the app connect.
- Decide which direction the pair runs, because you should read Pair direction before you start.
Connect
- Choose Microsoft 365 inside JustForwarding, then complete the work or school popup instead of a personal Outlook.com login.
- Confirm that the Inbox and your other folders appear inside JustForwarding, because the connection is not finished until they do.
- Add each shared mailbox as a separate pair, because one pair cannot serve two shared mailboxes at once.
Common problems
When JustForwarding reports mailbox not found, the mailbox has no Exchange license attached to it yet. You should assign that license to the user, wait a few minutes for the change to settle, and then try again.
An AADSTS error means an admin must consent to the app, or you picked the wrong directory during sign-in.
Two pairs running in both directions can loop when Message-ID alignment is missing, so read dedupe before you add any. An A→B connection does not copy replies that only exist on B. You must create B→A as a second pair for those replies, and you should watch both pairs for loops.
When the security defaults of your tenant block IMAP, you should use OAuth instead of basic authentication for that mailbox.
Once the Inbox verifies, you should start the pair and wait one cycle before you judge the result. License the mailbox first, prefer OAuth, and add shared mailboxes as extra pairs, because each of those habits removes a common failure. Older history still lives in MailMigrata, and the work or school account is still not a personal Outlook.com account.