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
- The user needs an Exchange Online license. An unlicensed user has no mailbox.
- MailMigrata copies a live mailbox. It is not a PST import tool.
- Public folders, SharePoint, Teams, and the Online Archive are not included.
- If the tenant uses Security defaults or blocks basic authentication, a password over IMAP fails. Use Microsoft sign-in.
- Calendars, contacts, and files use CalendarMigrata (Connect Microsoft 365 calendars (Graph) to CalendarMigrata), ContactMigrata (Connect Microsoft 365 contacts (Graph) to ContactMigrata), and FileMigrata.
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
- Sign in to MailMigrata and start a migration.
- Choose Microsoft 365 as the account type. The connector fills in the server settings.
- In the Microsoft picker, choose Work or school, not Personal.
- Complete sign-in and consent. If the tenant requires admin consent, an administrator approves MailMigrata once.
- Save and test the connection.
- 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
- On-premises Exchange with IMAP: use Connect a generic IMAP server. EWS-only servers are not supported by this path.
- Tenant to tenant: connect each side separately. Create and license destination users first. See Microsoft 365 tenant-to-tenant mail.