You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While connecting with an Exchange 2013 IMAP4 Server we get LOGIN Failed on every attempt since our update to version 3.1.1.
The password and username of the user were checked and are the correct domain user information of the user.
Is there anything wrong with my call to the imap server?
Thanks!
Exception
2022-03-22 09:29:33,478 [54] ERROR IMAP.MailKitImapClient [(null)] - (CheckConnection) - CheckConnection Authentication failed
MailKit.Security.AuthenticationException: LOGIN failed.
at MailKit.Net.Imap.ImapClient.d__103.MoveNext() in D:\src\MailKit\MailKit\Net\Imap\ImapClient.cs:line 1230
--- End of stack trace from previous location where exception was thrown ---
Protocol Logs
Connected to imap://****:143/?starttls=when-available
S: * OK The Microsoft Exchange IMAP4 service is ready.
C: C00000000 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 LOGINDISABLED STARTTLS UIDPLUS MOVE ID CHILDREN IDLE NAMESPACE LITERAL+
S: C00000000 OK CAPABILITY completed.
C: C00000001 STARTTLS
S: C00000001 OK Begin TLS negotiation now.
C: C00000002 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=NTLM AUTH=GSSAPI UIDPLUS MOVE ID CHILDREN IDLE NAMESPACE LITERAL+
S: C00000002 OK CAPABILITY completed.
C: C00000003 AUTHENTICATE NTLM
S: +
C: ********
S: + TlRMTV.....
C: ********
S: C00000003 NO AUTHENTICATE failed.
C: C00000004 AUTHENTICATE PLAIN
S: +
C: ********
S: C00000004 NO AUTHENTICATE failed.
C: C00000005 LOGIN ******** ********
S: C00000005 NO LOGIN failed.
C: C00000006 LOGOUT
S: * BYE Microsoft Exchange Server 2013 IMAP4 server signing off.
S: C00000006 OK LOGOUT completed.
The text was updated successfully, but these errors were encountered:
I could be wrong as I haven't done any thorough testing of this theory, but it seems that once NTLM authentication is attempted with Exchange, if that fails, it will reject any other SASL mechanism used.
My goal is to fix NTLM to always work correctly which is why 3.0 has a complete rewrite that I wrote based on the official specs whereas 2.x and older had an implementation I borrowed from Mono which was based on reverse engineering. That said, there was a bug discovered by the eM Client guys in my new NTLM implementation (issue #1340) that I recently fixed but haven't yet published a release with that fix.
If you end up testing with the latest build and it works for you, let me know, and I'll try to expedite a release.
Oh, you might need MimeKit from that myget source as well - I think MailKit might make use of some of the new optimization APIs that are in that MimeKit.
Describe the bug
While connecting with an Exchange 2013 IMAP4 Server we get LOGIN Failed on every attempt since our update to version 3.1.1.
The password and username of the user were checked and are the correct domain user information of the user.
Is there anything wrong with my call to the imap server?
Thanks!
Exception
2022-03-22 09:29:33,478 [54] ERROR IMAP.MailKitImapClient [(null)] - (CheckConnection) - CheckConnection Authentication failed
MailKit.Security.AuthenticationException: LOGIN failed.
at MailKit.Net.Imap.ImapClient.d__103.MoveNext() in D:\src\MailKit\MailKit\Net\Imap\ImapClient.cs:line 1230
--- End of stack trace from previous location where exception was thrown ---
Protocol Logs
Connected to imap://****:143/?starttls=when-available
S: * OK The Microsoft Exchange IMAP4 service is ready.
C: C00000000 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 LOGINDISABLED STARTTLS UIDPLUS MOVE ID CHILDREN IDLE NAMESPACE LITERAL+
S: C00000000 OK CAPABILITY completed.
C: C00000001 STARTTLS
S: C00000001 OK Begin TLS negotiation now.
C: C00000002 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=NTLM AUTH=GSSAPI UIDPLUS MOVE ID CHILDREN IDLE NAMESPACE LITERAL+
S: C00000002 OK CAPABILITY completed.
C: C00000003 AUTHENTICATE NTLM
S: +
C: ********
S: + TlRMTV.....
C: ********
S: C00000003 NO AUTHENTICATE failed.
C: C00000004 AUTHENTICATE PLAIN
S: +
C: ********
S: C00000004 NO AUTHENTICATE failed.
C: C00000005 LOGIN ******** ********
S: C00000005 NO LOGIN failed.
C: C00000006 LOGOUT
S: * BYE Microsoft Exchange Server 2013 IMAP4 server signing off.
S: C00000006 OK LOGOUT completed.
The text was updated successfully, but these errors were encountered: