Blog/ Troubleshooting & errors

IMAP Server Does Not Support the Authentication Method: Causes and Fixes

Nafiul HasanNafiul Hasan· 9 min read
A plug facing a wall socket of a different shape with a green adapter between them: a mail client and an IMAP server that need a matching authentication method

The short answer

Your email client asked for a login method the IMAP server does not list in its CAPABILITY response. Usually the client is set to the wrong method, it connected without TLS so the server hid its options, or the provider now accepts only OAuth. Read the AUTH= entries, then change the setting or sign in with OAuth.

IMAP server does not support the selected authentication method: read the CAPABILITY list, then change the client setting or move to OAuth. Don't downgrade.

On this page
  1. 01What does 'IMAP server does not support the selected authentication method' mean?
  2. 02What causes the error?
  3. 03Fix 1: How do you match the client's method to what the server offers?
  4. 04Fix 2: What if the provider now only allows OAuth?
  5. 05Fix 3: What if the list is empty or shows LOGINDISABLED?
  6. 06How do you tell which cause you have?
  7. 07How do you stop it coming back?
  8. 08Can something else handle this for you?

You add an account, and the client stops with a message that the IMAP server does not support the selected authentication method. The password is probably fine. The two sides simply could not agree on how to prove who you are.

This post explains what the message means, how to read the server's own list of supported methods, and which of three fixes applies to you. It also covers the one shortcut you should not take, which is lowering your security until the error goes away.

What does 'IMAP server does not support the selected authentication method' mean?#

Before you log in, an IMAP server can tell a client what it supports. The client asks with the CAPABILITY command, and the server answers with a list. Entries that start with AUTH= name the login mechanisms the server accepts, such as AUTH=PLAIN or AUTH=XOAUTH2.

The error appears when the method your client is configured to use is not on that list. The client checks, finds no match, and stops before sending your password. Exact wording varies between clients, so treat the message as a symptom and the capability list as the evidence.

Three terms from RFC 9051, the current IMAP specification, explain almost every case:

  • AUTH=<name>: the server supports that SASL authentication mechanism. The RFC says clients and servers must implement AUTH=PLAIN.
  • LOGINDISABLED: the plain LOGIN command is switched off. The RFC says a client must not send LOGIN when the server advertises this.
  • STARTTLS: the connection can be upgraded to TLS. On a cleartext port, servers are required to offer it, and the list of methods often changes once TLS is on.

Not the same as a wrong password

A rejected password usually comes back as an authentication failure from the server. This error is earlier and different: the client never found a method it was willing to use. Changing your password will not fix it.

What causes the error?#

There are four common causes. The table shows how to confirm each one and which fix section to jump to.

CauseHow to confirmFix
Client is set to a method the server does not listThe AUTH= entries in the CAPABILITY output do not include the method named in your account settingsFix 1: pick a listed method
Server only accepts OAuth, client is set to a password methodAUTH=XOAUTH2 is listed and no password mechanism is, or the provider has documented that password sign-in is goneFix 2: move to OAuth
Connection security is wrong, so the server hides its optionsCAPABILITY shows LOGINDISABLED or no AUTH= entries before TLS, but a different list after itFix 3: correct the port and encryption setting
Client is too old for the method the server wantsThe server lists only a modern method and your client version has no matching sign-in optionFix 2: update or change client

Fix 1: How do you match the client's method to what the server offers?#

Start here, because it shows the facts for every other fix. You are not logging in, only asking the server what it supports, so no password is typed at any point.

  1. 1

    Open a TLS connection to the server

    On the usual implicit-TLS port, run: openssl s_client -connect imap.example.com:993 -crlf. Replace the host with the one from your provider. For a server that uses STARTTLS on port 143, run: openssl s_client -starttls imap -connect imap.example.com:143 -crlf.

  2. 2

    Ask for the capability list

    When the server greets you, type: a1 CAPABILITY and press Enter. The server answers with a line starting with * CAPABILITY, then a1 OK. Some servers also put the list inside the greeting.

  3. 3

    Read the AUTH= entries

    Write down every entry that starts with AUTH=. Ignore capability names you do not recognise. RFC 9051 tells clients to ignore unknown ones, and so can you.

  4. 4

    Change the client to a listed method

    Open the account's server settings and find the authentication or security-method field. Its label and its option names differ between clients, so match them by meaning, not by exact wording. Choose a method that appears in the AUTH= list.

  5. 5

    Retest the account

    Save, then run the account check again. If the error persists with a method that is clearly listed, the cause is probably connection security, so go to Fix 3.

What a capability line looks like (RFC 9051 example)
Before TLS* CAPABILITY IMAP4rev2 STARTTLS AUTH=GSSAPI LOGINDISABLED
After STARTTLS* CAPABILITY IMAP4rev2 AUTH=GSSAPI AUTH=PLAIN

Fix 2: What if the provider now only allows OAuth?#

Large providers have retired password sign-in for IMAP. Microsoft states that Basic authentication is now disabled in all Exchange Online tenants, including for IMAP, and that nobody can re-enable it. Its documentation says OAuth 2.0 for IMAP is supported for both Microsoft 365 and Outlook.com accounts (checked October 2026).

Google's help page says Gmail no longer supports third-party apps or devices that need your Google username and password, and points to the Sign in with Google option instead. Google's XOAUTH2 documentation says the AUTH=XOAUTH2 capability declares that the server supports its OAuth mechanism, which is what an OAuth-capable client looks for.

  1. 1

    Check the capability list for AUTH=XOAUTH2

    Use the steps in Fix 1. If AUTH=XOAUTH2 is present and no password mechanism is, the server expects a token, not a typed password.

  2. 2

    Update the client

    Install the latest version. Google's help page names older clients, such as Outlook 2016, as ones that may lack current security standards, so an update is the first thing to try.

  3. 3

    Remove the account and add it again

    Delete the account from the client, then add it fresh and choose the provider's own sign-in, such as Sign in with Google or a Microsoft sign-in. The provider's sign-in page issues a token, and the client uses that token in place of your password.

  4. 4

    Switch connection type if the client cannot do OAuth

    Microsoft's documentation says there is no plan for Outlook clients to support OAuth for POP and IMAP. It says they connect through MAPI over HTTP on Windows and EWS on Mac instead, so add the account as a Microsoft 365 or Exchange account, not as generic IMAP.

Do not downgrade to make the error disappear

If a setting called something like 'allow insecure authentication' makes the message go away, you have traded a clear error for exposed credentials. RFC 9051 says servers must be able to refuse plaintext password mechanisms until TLS is active, and sites should not permit them otherwise. PLAIN inside a TLS connection is acceptable. PLAIN on a cleartext connection is not.

Fix 3: What if the list is empty or shows LOGINDISABLED?#

A short or empty list usually means you asked before the connection was protected. The RFC says it is common for the capability list to change after TLS and again after login. A server that shows LOGINDISABLED and few AUTH= entries on a cleartext port is doing what the standard asks of it.

  1. 1

    Match the port to the encryption setting

    RFC 9051 names port 993 as the implicit-TLS port and port 143 as the cleartext port. Use 993 with SSL/TLS, or 143 with STARTTLS. A mismatch, such as 993 with STARTTLS selected, can produce odd results.

  2. 2

    Re-run CAPABILITY after TLS is on

    Use the -starttls form from Fix 1 for port 143. The list you see after the upgrade is the one your client will use, so compare your setting against that list.

  3. 3

    Never select 'None' for encryption

    Turning TLS off removes the very protection that lets the server offer password methods. If the provider does not support TLS at all, ask them why before you send a password.

How do you tell which cause you have?#

Run the capability check once and compare what you see against this table. It takes about a minute and saves guessing.

A road splitting in two, one branch to a gear with a dial and the other, highlighted in green, to a shield holding a key: change the client's authentication setting, or move the account to OAuth
The decision is a fork: change the client's setting, or change how the account signs in.
What you seeMost likely causeGo to
AUTH=PLAIN listed, client set to something elseClient set to an unlisted methodFix 1
AUTH=XOAUTH2 only, client asks for a passwordProvider requires OAuthFix 2
LOGINDISABLED, few or no AUTH= entriesCapabilities read before TLSFix 3
Different lists before and after STARTTLSEncryption setting mismatchFix 3
Modern method listed, client has no option for itClient too old or wrong account typeFix 2

How do you stop it coming back?#

The error returns when either side changes without the other. Providers retire mechanisms, and clients stop updating. A few habits cover most of it:

  • Prefer the provider's own sign-in (OAuth) where one exists. It is the method the large providers are moving towards.
  • Keep clients updated. An old client stuck on a retired method is the most common repeat cause.
  • Avoid app passwords unless you have no alternative. Google's own page says they are not recommended and unnecessary in most cases.
  • Save the CAPABILITY output the first time an account works, so you have a baseline to compare against when something changes.
  • Date-stamp provider rules. Microsoft says the retirement timeline for SMTP AUTH Basic authentication has been updated and points readers to its latest announcement, so check the vendor's page before relying on any date.

Can something else handle this for you?#

The mechanism behind this error is a negotiation: the client names a method, the server lists what it accepts, and a mismatch ends the conversation. We build AI Emaily, an email client that connects Gmail, Outlook and generic IMAP accounts, so if you would rather not hand-tune settings per provider you can start from the homepage and connect the account there. It cannot make a server offer a mechanism it does not support, so the capability check in Fix 1 still tells you the truth about the server. There is a 7-day free trial on Pro and Autopilot, card required and $0 if you cancel before day 7, with details on the pricing page.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Connect your account and skip the guesswork

Try AI Emaily with a 7-day free trial on Pro or Autopilot. Card required, $0 if you cancel before day 7.

  • 7-day free trial
  • Cancel anytime
  • Every provider