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)

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
583 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,224 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,169 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
507 questions
{count} votes

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