Connect iCloud Mail (IMAP app-specific password)
This article explains how to connect iCloud Mail to MailMigrata, for example to copy it to Gmail or Microsoft 365.
Limitations
- Apple requires an app-specific password when two-factor authentication is on. Your Apple ID password fails.
- This covers mail only. iCloud Drive uses FileMigrata (Apple has no public Drive API for direct connection); calendars use CalendarMigrata (Connect Apple iCloud Calendar (CalDAV app-specific password)) over CalDAV.
- Hide My Email relay addresses are not separate accounts. They deliver to this mailbox and are copied with it.
What is migrated
- Messages, folders, and attachments that the destination accepts.
- Gmail labels become folders on folder-based destinations.
- Calendars, contacts, and files are not included. Use CalendarMigrata (Connect Apple iCloud Calendar (CalDAV app-specific password)), ContactMigrata (Connect Apple iCloud Contacts (CardDAV app-specific password)), and FileMigrata.
You can keep using the mailbox while the copy runs. MailMigrata does not delete anything from the source unless you choose to.
Prerequisites
- An Apple ID with two-factor authentication.
- An app-specific password from appleid.apple.com.
- The iCloud address the mailbox uses (usually
@icloud.comor@me.com). An alias iCloud does not show as the mailbox fails.
Connection details
| Setting | Value |
|---|---|
| Protocol | IMAP |
| Host | imap.mail.me.com |
| Port | 993 |
| Username | Full iCloud address |
| Authentication | App-specific password |
Steps
- At appleid.apple.com, create an app-specific password named "MailMigrata".
- In MailMigrata, choose iCloud and enter the address and app-specific password.
- Validate and confirm that Inbox, Sent, Archive, and custom folders appear. iCloud folder lists can be short.
- Choose a destination and start.
For the opposite direction, see Gmail to iCloud.
Troubleshooting
- LOGIN failed: you did not use an app-specific password. Create one under App-Specific Passwords at appleid.apple.com.
- Empty folder list: wrong alias as username. Use the address iCloud shows as the mailbox.