Exchange 2016 - IMAP/POP not working

drClays 146 Reputation points
2024-01-26T14:01:30.35+00:00

Hello, I have Exchange Server 2016 configured on Windows Server 2019. I have a FortiGate firewall and FortiMail between the firewall and the Exchange server. The incoming ports are configured as 25,465,587,993, 995 to FortiMail. The send connector is configured to FortiMail IP address. I have to use IMAP or POP via Thunderbird because not everyone has Outlook. I am testing communication with Exchange Server on IMAP port on https://testconnectivity.microsoft.com/ and the test failed:

The IMAP service is being tested.There was an error testing the IMAP serviceAdditional DetailsProtocol Log: C: 1 CAPABILITY S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] mail service ready. S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN S: 1 OK Pre-login capabilities listed, post-login capabilities have more. C: 2 LOGIN test.mailbox@contoso.com ******** S: 2 NO [AUTHENTICATIONFAILED] Authentication failed. Exception details: Message: Serwer IMAP zwrócił stan błędu „2 NO [AUTHENTICATIONFAILED] Authentication failed.”. Type: Microsoft.M365.RCA.Services.Protocols.Imap.ImapServerErrorException Stack trace: at Microsoft.M365.RCA.Services.Protocols.Imap.ImapCommand1.CheckForOk(IList1 response) at Microsoft.M365.RCA.Services.Protocols.Imap.LoginCommand.ProcessResponse(IList1 response) at Microsoft.M365.RCA.Services.Protocols.ProtocolClient.<SendCommandAsync>d__171.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.M365.RCA.ConnectivityTests.ImapPop.BaseProtocolTest.<PerformTestInternalAsync>d__12.MoveNext()

Has anyone had problems with IMAP like this and have a solution to resolve the issue?

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,337 questions
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,796 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,228 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,669 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
565 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Thomas Koorts 0 Reputation points
    2024-02-13T19:09:29.32+00:00

    Not sure if you solved this already, and it might be a very obvious question, but is IMAP & POP enabled and configured on the server, as it is not enabled by default? https://learn.microsoft.com/en-us/exchange/clients/pop3-and-imap4/configure-pop3?view=exchserver-2019 https://learn.microsoft.com/en-us/exchange/clients/pop3-and-imap4/configure-imap4?view=exchserver-2019 If so, it can also be that the PopProxy and ImapProxy components are in inactive state. https://learn.microsoft.com/en-us/exchange/troubleshoot/client-connectivity/cannot-connect-to-pop3-or-imap4?source=recommendations

    0 comments No comments

  2. Waleed 1 Reputation point
    2024-07-27T13:41:53.1866667+00:00

    dears

    please share the steps i have the same issue

    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.