The server did not respond with a + response. The response was: "-ERR Logon failure: unknown user name or bad password."

Sanjay Patel 21 Reputation points
2022-08-05T13:24:02.647+00:00

Hello support,

we are read email from outlook 365 using pop3 account and it's working fine from couple of years.. now suddenly get error as below while accessing from c# Service.

when i access same account from browser then it's working fine but not able to access from c# service so how username & password incorrect ?

Server did not accept user credentials
OpenPop.Pop3.Exceptions.PopServerException: The server did not respond with a + response. The response was: "-ERR Logon failure: unknown user name or bad password."
at OpenPop.Pop3.Pop3Client.IsOkResponse(String response)
at OpenPop.Pop3.Pop3Client.SendCommand(String command)
at OpenPop.Pop3.Pop3Client.AuthenticateUsingUserAndPassword(String username, String password)
at OpenPop.Pop3.Pop3Client.Authenticate(String username, String password, AuthenticationMethod authenticationMethod)
at OpenPop.Pop3.Pop3Client.Authenticate(String username, String password, AuthenticationMethod authenticationMethod)

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,178 questions
Microsoft 365 and Office | Office Online Server
Exchange | Exchange Server | Development
Developer technologies | C#
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2022-08-05T16:17:27.773+00:00

    Probably related to Microsoft dropping support of basic authentication. You should switch your code to oauth. See:

    https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tom Reinhart 1 Reputation point
    2022-08-05T19:28:43.133+00:00

    Hey,

    We just ran across this as well. MSFT is randomly selecting tenants and killing basic auth before the due date.

    You can opt out but it is a rabbit hole.

    https://www.reddit.com/r/sysadmin/comments/wazpl7/microsoft_just_disabled_basic_auth_for_pop3_for/

    In help search for the following string to opt out.

    DIAG: Enable basic auth in exo

    Good luck.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.