Fix "IMAP Login Failed" Errors in Minutes!
This article explains the five most common causes of an "IMAP Login Failed" error and how to fix each one.
Summary
| Cause | Fix |
|---|---|
| Wrong username or password | Check the full address and password; reset if changed |
| Wrong server name or port | Use the bare host name; port 993 (SSL/TLS) or 143 (STARTTLS) |
| DNS changed after migration | Use the original host name or IP while it still works |
| OAuth or app password required | Use OAuth for Google and Microsoft; app password elsewhere |
| IP address blocked | Wait, ask the provider, reduce parallel connections |
1. Wrong username or password
The server cannot match the details to a mailbox, for example at Gmail, Outlook, or GoDaddy.
- The username is usually the full email address.
- Check for extra spaces from copy and paste, and confusable characters such as "I" and "l", or "0" and "O".
- If the password changed recently, reset it at the provider and retry.
2. Wrong server name or port
The connection never reached a mailbox.
- Enter the bare IMAP host name:
imap.gmail.com, nothttps://imap.gmail.comorimap.gmail.com:993. The port goes in its own field. - If unsure, ask your provider's support for the IMAP host name.
- Port 993 is standard for SSL/TLS; 143 is for STARTTLS.
3. DNS settings changed
After a migration and DNS change, the host name now points to the new provider, so the old mailbox is unreachable.
- Use the original host name or IP address during cutover, if the old provider still accepts it.
- Check where
imap.yourdomain.comresolves. - Once corrected, resume the existing job; do not create a second one.
4. OAuth or an app password required
Gmail, Microsoft 365, and Yahoo Mail no longer accept a plain mailbox password over IMAP. Microsoft retired basic authentication for Exchange Online in 2022, and Google Workspace administrators can turn off app passwords for their domain.
- Use OAuth for Gmail and Microsoft 365. This is how MailMigrata connects to both.
- Use an app password only for providers without OAuth, such as Yahoo.
- Turning off OAuth does not make a password work. It only breaks a working connection.
- If an account is already connected with OAuth, MailMigrata keeps using that token and never falls back to a password. A login failure then means the consent expired or was revoked. Reconnect the account.
5. IP address blocked
The server refuses connections, usually after repeated failed logins or too many simultaneous connections.
- Wait; some providers lift blocks after minutes or hours.
- Ask your provider to lift the block, quoting your public IP address.
- Run one migration at a time against a server instead of several.
- Fix or disconnect any device on your network that keeps retrying an old password.
Migrate with MailMigrata
- In MailMigrata, create a new migration and name it.
- Enter the Source account: provider, email address, password or OAuth sign-in, and server.
- Enter the Destination account.
- Validate the settings.
- Optionally enable Free-Forwarding, which forwards new mail to the new mailbox for 15 days and can be extended. The 15 days start when forwarding begins.
- Select folders and, optionally, a date range.
- Start the migration.
After fixing a login error, re-run the existing job instead of starting a duplicate.