Documentation

JustForwarding help

Connect Microsoft 365 mail

This article explains how to connect a licensed Microsoft 365 work or school mailbox to MailMigrata, as source or destination. For personal Outlook.com, Hotmail, or Live addresses, see Connect Outlook.com / Hotmail.


Limitations


What is migrated

Messages, folders, and attachments the destination accepts. You can keep using the mailbox during the copy. The source is not changed unless you choose to delete.


Prerequisites

  • A Microsoft 365 plan that includes Exchange Online.
  • Permission to sign in to the mailbox, as its owner or as an administrator acting for them.
  • Admin consent for MailMigrata, if your tenant requires it.

Connection details

Setting Value
Authentication Microsoft OAuth (Connect with Microsoft); IMAP only where the tenant allows it
IMAP host outlook.office365.com
Port 993 (SSL/TLS)

See OAuth, passwords, and app passwords and How to enable IMAP for Microsoft 365.


Steps

  1. Sign in to MailMigrata and start a migration.
  2. Choose Microsoft 365 as the account type. The connector fills in the server settings.
  3. In the Microsoft picker, choose Work or school, not Personal.
  4. Complete sign-in and consent. If the tenant requires admin consent, an administrator approves MailMigrata once.
  5. Save and test the connection.
  6. Confirm that Inbox, Sent Items, and custom folders appear. An empty list usually means the wrong account type, no license, or IMAP-only settings.

Use outlook.office365.com on port 993 only if you connect as generic IMAP.


Shared mailboxes and archives

  • Each shared mailbox is a separate connection and job. One user's sign-in does not include the shared mailboxes they can open.
  • The Online Archive (In-Place Archive) is a separate store and does not appear beside Inbox.
  • If large attachments are skipped, see Change the Microsoft 365 max message size.

Troubleshooting

  • AADSTS / admin consent required: a Microsoft 365 administrator grants consent once, then you sign in again.
  • Mailbox not found / does not exist: the user has no Exchange license, or you signed in with a directory account with no mailbox. Assign a license with Exchange Online, wait a few minutes, and test again.
  • IMAP LOGIN failed: IMAP is disabled or basic authentication is blocked. Use Connect with Microsoft, or enable IMAP with an allowed method. See Fix IMAP login failed errors.
  • Wrong account in the picker: the browser is signed in to a personal account. Use a private window and choose Work or school account.

Other scenarios


Related articles