Documentation

Help for MailMigrata and the whole suite

Connect iCloud Mail (IMAP app-specific password)

MailMigrata copies iCloud Mail to Gmail, Microsoft 365, or another IMAP host, and this guide walks you through the sign-in. Apple runs iCloud Mail as an IMAP service at imap.mail.me.com, and Apple demands an app-specific password whenever two-factor authentication is active. The username is usually the full @icloud.com or @me.com address, and that address must match the one the mailbox actually uses. This guide covers mail alone, so calendar work belongs to CalendarMigrata and file work belongs to FileMigrata.

The IMAP host and port reference tables live in How to migrate your iCloud Mail account, which holds the host tables. The opposite direction already has its own walkthrough in Gmail to iCloud, and the wizard choices appear on the email migration made simple page.

What You’ll Learn

  • This page shows you how to create an Apple app-specific password, because a generated password is the only one that IMAP accepts.
  • The connection section names the IMAP host, port, and username that iCloud Mail requires for a successful sign-in.
  • A guided walkthrough connects the mailbox and verifies its folders, since a sparse folder list can look like a failure.
  • One part explains why Hide My Email relay addresses are not separate mailboxes, so you can skip that confusion entirely.
  • The troubleshooting section fixes LOGIN failed and empty folder lists, and each fix names the Apple setting that caused it.



What you need

Authentication uses IMAP together with an app-specific password, and the connection endpoint is imap.mail.me.com:993.

  • You need an Apple ID with two-factor authentication enabled, because Apple ties the App-Specific Passwords page to that protection.
  • You also need an app-specific password, and you generate that credential at appleid.apple.com rather than on the mail host.
  • The IMAP username is the iCloud email address that the mailbox actually uses. An alias that iCloud does not show as the mailbox will fail authentication.



Connect in MailMigrata

  1. At appleid.apple.com, you create an app-specific password and label it MailMigrata, so you can recognise the credential later.
  2. You then open MailMigrata and choose iCloud, and the password field takes the value you generated instead of your web login.
  3. You validate the connection and confirm that Inbox, Sent, Archive, and any custom folders appear, because iCloud folder names can be sparse.

Hide My Email relay addresses still deliver into this mailbox, because Apple forwards each relayed message to the account. Those relay addresses are not separate IMAP accounts, so you connect the mailbox once and every relay arrives with the rest of the mail. The normal Apple ID password plus two-factor authentication fails LOGIN, because the mail host accepts only the generated password.



What MailMigrata copies

MailMigrata copies the IMAP messages, folders, and attachments that the destination accepts, and the copy leaves the source untouched until you choose a later deletion. You can keep using iCloud Mail while the copy runs, because a copy never removes anything from the source.

iCloud Drive belongs to FileMigrata, because Apple publishes no public Drive API, and Calendar belongs to CalendarMigrata over CalDAV.



Common problems

LOGIN failed means you did not use an app-specific password, so you create one under App-Specific Passwords at appleid.apple.com. See IMAP login failed.

Empty folder list appears when you use the wrong @me.com or @icloud.com alias as the username. The mail host authenticates only the address that the mailbox actually serves, so a mismatched alias produces an empty list. You fix it by using whichever address iCloud displays as the mailbox.



Wrap-up

When the Inbox folder lists inside MailMigrata, you pick a destination for the copy, and the job then runs against that target. The iCloud provider settings page holds the reference detail, and the common mailbox migrations page lists similar jobs.