Connect Microsoft 365 mail
MailMigrata copies a licensed Microsoft 365 work or school mailbox into a destination mailbox, and this guide covers that connection step by step. A user with a valid licence signs in through Microsoft's own screen, because the wizard cannot accept a work password directly for that tenant. The other route is IMAP at outlook.office365.com, and some tenants still leave that protocol open for mail clients. Personal Hotmail, live.com, and Outlook.com addresses belong to a different Microsoft account type, because that consumer service uses its own sign-in flow.
See Connect Outlook.com / Hotmail.
MailMigrata copies messages, folders, and acceptable attachments over IMAP or the Microsoft sign-in, so the destination receives a live mailbox rather than an import file. The tool is not a PST import utility, and it leaves public folders, SharePoint, Teams, and the Online Archive outside the copy. MailMigrata keeps those other stores out of scope, because each one needs its own connector and its own permission model. Calendar, contacts, and files belong to CalendarMigrata, ContactMigrata, and FileMigrata, because those products handle different data.
What You’ll Learn
- The first lesson explains why a user needs an Exchange Online licence before a mailbox can be copied.
- You also learn how to choose Work or school in the Microsoft account picker, because Personal points at consumer mail.
- The guide then shows how MailMigrata connects with Microsoft OAuth, and when IMAP sign-in remains an option.
- Shared mailboxes and Online Archives get their own explanation, because both behave unlike a primary mailbox.
- The last lesson lists fixes for admin consent, missing mailboxes, and IMAP LOGIN failed, because each one blocks the connection.
What you need
- A Microsoft 365 plan must include Exchange Online, because an unlicensed user owns no mailbox that MailMigrata can copy.
- You need permission to sign in to that mailbox, either as its owner or as an administrator acting on that person's behalf.
- MailMigrata offers Connect with Microsoft (OAuth) in the wizard, while IMAP works only where the tenant still allows that sign-in method.
See How to enable IMAP for Microsoft 365.
If your organisation uses Security defaults or blocks basic authentication, use Microsoft sign-in instead. A normal work password over IMAP will fail in that setup, because the tenant already refuses basic authentication.
MailMigrata uses Microsoft OAuth, and IMAP applies only where the tenant still permits that protocol. Read OAuth, passwords, and app passwords to see which method applies and why an app password is not your password. The IMAP endpoint is the host outlook.office365.com, and that server listens on port 993 over SSL/TLS.
Connect in MailMigrata
- You sign in to MailMigrata and start a migration as either the source or the destination side.
- You choose Microsoft 365 as the account type, because that option loads the Exchange Online endpoint for you.
- When Microsoft asks which account to use, you pick Work or school rather than Personal, because the personal choice reaches a different service.
- You complete the sign-in and consent prompts, and an administrator must approve MailMigrata once for the organisation when the tenant demands admin consent.
- You save the connection and run the test, because MailMigrata only proves the credentials after that check succeeds.
- You confirm that MailMigrata can list Inbox, Sent Items, and your custom folders, because an empty list means the account type was wrong.
An empty folder list usually points at the wrong account type, an unlicensed mailbox, or an IMAP setting that OAuth never replaced. You usually do not type a server name, because the wizard option already knows the endpoint and its settings. You use outlook.office365.com on port 993 only when you connect as generic IMAP, because the Microsoft 365 connector fills those values itself. For folder choices, date ranges, and keeping mail flowing during the copy, see email migration made simple.
Shared mailboxes and archives
You treat each shared mailbox as its own connection and job, because one licensed sign-in does not pull every mailbox that person can open. Online Archive, which Microsoft also calls In-Place Archive, is a different store from the primary mailbox, because that archive lives in a separate place. You must not assume that archive folders appear beside Inbox in the same folder list, because the connector reads each store through a separate path. When the destination skips large attachments, you raise the size limit as Change the Microsoft 365 max message size describes. You can keep using the mailbox while MailMigrata copies it, because the job reads the source without locking that account. MailMigrata deletes source mail only when you choose that action later, so the original mailbox stays intact by default.
Common problems
AADSTS errors and admin consent required messages appear when the tenant blocks third-party apps until an administrator approves MailMigrata for the whole organisation. The fix is that a Microsoft 365 admin grants consent once, and then you sign in again, because the tenant remembers that approval. Mailbox not found or mailbox does not exist means the user holds no Exchange licence for that account. The same error appears when you signed in with a directory account that has no mailbox, because that account never received an Exchange licence. To repair that case, you assign a licence that includes Exchange Online, wait a few minutes, and then test the connection again. IMAP LOGIN failed means IMAP is disabled, or the tenant blocks basic authentication, which Security defaults often causes. You should prefer Connect with Microsoft in that situation, because the OAuth flow avoids the blocked password path entirely. When you must keep IMAP, you enable it on the mailbox and use a method the tenant still allows, so the login can succeed.
See Fix IMAP login failed errors.
Wrong account in the Microsoft picker happens when the browser was already signed in to a personal account such as outlook.com or Hotmail. You use a private window or pick Work or school account instead, then test again, because the old session keeps overriding your choice. For an on-premises Exchange server that offers IMAP, you use the generic IMAP connection, because this connector serves Exchange Online only. An EWS-only on-premises server is not this path, because that protocol needs a different setup than the one described here. For a copy between two tenants, you connect each Microsoft 365 side separately as source or destination, then follow Microsoft 365 tenant-to-tenant mail. You create the destination users and their licences first, because the copy fails without a target mailbox for each one.
Wrap-up
Once MailMigrata lists Inbox and Sent Items, you pick the other side of the job, because each side needs its own validated connection. The account-type guide is Connect Outlook.com / Hotmail, and it explains the consumer sign-in that this page excludes. The protocol guide is How to enable IMAP for Microsoft 365, and it covers tenants that still allow IMAP. A broader set of mailbox scenarios appears in common mailbox migrations, so read that page before you plan a large job.