Connect Gmail to MailMigrata (OAuth, IMAP)
MailMigrata copies a Gmail mailbox, and this guide walks you through the sign-in step so that MailMigrata can reach the mailbox. Gmail is IMAP, yet Google adds several quirks that change how MailMigrata handles labels and the login step. Labels are not folders in Gmail, and [Gmail]/All Mail keeps a second copy of every message you own. Google requires OAuth for the wizard, or an app password for a mail client, and Google never accepts your normal login.
This page covers a consumer @gmail.com account, or a user who signs in as themselves rather than through an administrator. Workspace admin impersonation lives in Connect Google Workspace mail, because that tenant-wide flow differs from this consumer setup. Host and port tables live in How to migrate your Gmail account, because those values depend on the exact service you connect. Calendar and contacts belong to CalendarMigrata and ContactMigrata respectively, since those companion tools handle entirely different data types.
What You’ll Learn
- You will learn how to turn IMAP on, and when OAuth replaces an app password for that mailbox.
- This guide also explains when MailMigrata should use Connect with Google instead of the manual password form.
- You will see how Gmail labels behave once MailMigrata copies them onto a destination that only understands folders.
- The guide also reveals why All Mail plus Inbox duplicates mail when you tick both folders for the same job.
- You will find fixes for empty folder lists and for the application-specific password error that Google returns at sign-in.
What you need
- You must enable IMAP in Gmail Settings → See all settings → Forwarding and POP/IMAP → Enable IMAP, because the wizard cannot read folders otherwise.
- MailMigrata signs in to Gmail through Connect with Google (OAuth), and an app password only serves a mail client that you configure yourself.
- You must sign in with the same Google identity that appears in Gmail, because another profile shows a different mailbox.
MailMigrata authenticates your Gmail connection with OAuth2, while manual IMAP with an app password serves client setup only. The mail server endpoint is imap.gmail.com:993 over SSL, and every Gmail connection in MailMigrata uses that address.
Google retired the less secure apps setting, so MailMigrata opens Google's own sign-in screen through Connect with Google (OAuth). If no such button appears, the manual form requires an app password, because your normal Google password will not work either way.
Connect in MailMigrata
- Turn IMAP on in Gmail before you start, because MailMigrata cannot list folders while that setting stays off.
- Open MailMigrata, choose Gmail, then select Connect with Google, and sign in on Google's own sign-in screen. If that button is missing, the manual form takes your full
@gmail.comaddress as the username and an app password as the password. - Validate the connection, because MailMigrata only learns that labels appear as folders after Gmail answers the login. The
[Gmail]/All Mailfolder duplicates mail when you tick both it and Inbox for a non-Gmail destination. Pick Inbox, Sent, and custom labels, or All Mail, because a migration should not copy the same message twice. - The destination mailbox must allow IMAP append, because MailMigrata creates every new message there while the copy runs.
Spam and Trash remain optional, so tick them only when you want MailMigrata to copy those folders as well.
Folders and labels
Gmail calls its folders labels, and a single message can carry many of those labels at the same time. On Microsoft 365 or IMAP, the same label becomes copies or one folder, because those destinations cannot show Gmail's label interface. After cutover, spot-check a message that carried two labels, because label handling decides where that message finally lands.
Google bandwidth limits can pause a Gmail job, yet MailMigrata resumes the same job after the pause clears. See skipped Gmail messages. You can keep using Gmail during the copy, and MailMigrata leaves the source mailbox untouched unless you choose deletion later.
Common problems
Google asks for an application-specific password when the manual form was given your web password, and MailMigrata cannot use that credential. Use Connect with Google instead, or create an app password when you stay on that entry screen. See OAuth, passwords, and app passwords.
You must enable IMAP before MailMigrata can list any folder, so turn it on, wait a minute, and validate again.
An empty folder list means the popup window signed in as a different Google identity than the one you expected. Sign out of every extra Google account in that browser, and then run the same connection attempt again.
A Workspace administrator who manages hundreds of users needs Connect Google Workspace mail instead of this consumer page, because the setup differs. The Workspace support team also handles bulk and sales questions, while Drive migrations belong to FileMigrata as a separate product.
Wrap-up
Once MailMigrata lists the labels, you pick a destination, because that choice decides how the labels appear on the other side. The related guides are email migration made simple, IMAP login failed, and common mailbox migrations, so read them before the cutover.