Documentation

Migrata Systems help

Fix "IMAP Login Failed" Errors in Minutes!

You may see an "IMAP Login Failed" error while your mail client tries to connect to your email account. This beginner-friendly guide explains the five most common reasons for that failure and shows you how to fix each one quickly. You will also learn how MailMigrata migrates your email without hassle, so your account can get back on track.

Top 5 Reasons for IMAP Login Failure

  1. The first reason is a username or a password that does not match the record at your mail provider.
  2. An incorrect mail server name will point the connection at a host that has no mailbox for you.
  3. A DNS setting that changed after a migration can redirect traffic to the new provider instead of the old one.
  4. Your provider may require OAuth or an app password, because a plain mailbox password is no longer enough.
  5. The mail server may have blocked your IP address after repeated failed logins or too many simultaneous connections.

How to Fix Each Issue

1. Wrong Username or Password

The most common issue is a wrong username or a password for your email account, such as Gmail, Outlook or GoDaddy — the plain details that the provider checks at login. The mail server rejects the attempt because the entered details cannot identify a valid mailbox.

  • You should check the username first, because it is usually the full email address that the provider expects.
  • Copy and paste can leave extra spaces in the password field, and characters such as "I" versus "l" or "0" versus "O" are easy to confuse.
  • A password that changed recently needs a reset at the provider before you try the login again.

2. Wrong Mail Server Name

You entered an incorrect IMAP server name, so the connection never reached a mailbox at all. The hostname field wants the bare name of the mail server, so a scheme or a port number goes into a separate field.

  • Your first check is the server name, which must be bare: imap.gmail.com, not https://imap.gmail.com and not imap.gmail.com:993, because the port belongs in its own field.
  • A short request to your provider's support desk will get you the exact IMAP hostname whenever you are unsure of the value.
  • The port number then deserves a check, because 993 is the norm for SSL/TLS and 143 serves STARTTLS.

3. DNS Settings Changed

After a migration and a DNS change, your mail client or MailMigrata can no longer reach the old server. The name now points at the new provider, so every connection travels to the wrong host.

  • You should use the original hostname or IP address while the cutover is in progress, but only if the provider still accepts that address.
  • A quick record check shows where imap.yourdomain.com resolves, and a name that now points at the new provider hides the old mailbox.
  • Once the settings are right, you should resume the existing job rather than create a second one against the same mailbox.

4. OAuth Required, or an App Password Needed

Gmail, Microsoft 365 and Yahoo Mail do not accept a plain mailbox password over IMAP any more. Microsoft retired basic authentication for Exchange Online in 2022, and Google Workspace admins can switch off app passwords entirely for their domain.

  • You should sign in with OAuth for Gmail and Microsoft 365, because that is how MailMigrata connects to both. The OAuth path also survives the providers retiring plain mailbox passwords.
  • An app password suits only the accounts that do not offer OAuth, and a Yahoo account is the usual case for that. Google and Microsoft accounts should go through their own sign-in screen instead of a password.
  • You should not try to "turn off OAuth", because no setting on these providers makes a plain password work again. Switching OAuth off on your account does not enable IMAP passwords, and it only breaks the connection that was working.
  • When you have already connected an account with OAuth, keep using that method for the mailbox. MailMigrata keeps using the stored OAuth token for that account and never falls back to a password. A login failure at that point means an expired or revoked consent rather than a mistyped password, so you should reconnect the account.

5. IP Address Blocked

The mail server refuses connections from your address, usually after repeated failed logins or too many simultaneous connections.

  • You should wait, because some providers release a block on their own after a few minutes or hours.
  • A support request to your provider can lift the block, provided that the request quotes your public IP address.
  • A better approach is to reduce parallelism by running one migration at a time rather than several against one server.
  • A device on your network that retries an old password can keep the block alive, so you should fix or disconnect that device.

Migrate Emails with MailMigrata

Once you have fixed your IMAP issue, you may be ready to move your emails to a new mailbox. MailMigrata makes that move straightforward when you follow this sequence of steps.

  1. You open MailMigrata and create a new migration for the account you want to move.
  2. You give that job a name you can recognise later when you review your list of migrations.
  3. You enter the Source account details, which cover the provider, the email address, the password or OAuth sign-in, and the server.
  4. The Destination account receives each copied message, so MailMigrata knows exactly where that message should land.
  5. You validate the settings next, because that check catches a bad login before any data moves.
  6. You can optionally enable Free-Forwarding, which forwards new mail to the new mailbox for 15 days, and you can extend that period.
  7. Your next choice is the set of folders that you want MailMigrata to copy into the destination account.
  8. A date range lets you move only part of the mailbox rather than the whole of it.
  9. You then start the migration, and MailMigrata copies the selected messages across to the destination account.

Free-Forwarding forwards every new message into the new mailbox for 15 days, and you can extend that window whenever you need to. The clock starts when forwarding begins rather than when you tick the box, so you should plan the switch around that start.

Wrap-Up

An "IMAP Login Failed" error is usually one of five causes, and each one has a direct fix.

  • A wrong username or password is the first cause, because the provider cannot match the details to an account.
  • The server name or port comes next, because an incorrect value means the connection never reaches a mailbox.
  • A DNS change can move the host, so the old name no longer points at that mailbox.
  • A provider that requires OAuth or an app password will reject a plain password every time.
  • A blocked IP address stops the server from accepting your connections at all.

You should fix the cause, then re-run the existing job rather than starting a duplicate.