Good morning,<br><br>I&#39;m working on an IMAP client using Javamail (1.4.3) and JCIFS (1.3.13) and I&#39;m trying to connect to an Exchange 2003 server with NTLM authentication.<br><br>I always get the following error message:<br>
&quot;unknown user name or bad password&quot;<br><br>I changed users, passwords, domain with no luck...<br><br>On the Exchange Server, in Event Viewer I can read the following entry:<br><br>EventID 1069, Source IMAP4SVC<br>
SSPI authentication attempt from &lt;myIP&gt; has failed with error 0x80090302. <br><br>In javamail forum they suggested me to post here as Javamail uses JCIFS for NTLM handshake...<br><br>The debug session with javamail:<br>
<br>DEBUG: trying to connect to host &quot;mailexch01&quot;, port 143, isSSL false<br>* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 ready.<br>A0 CAPABILITY<br>* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM<br>
A0 OK CAPABILITY completed.<br>IMAP DEBUG: AUTH: NTLM<br>DEBUG: protocolConnect login, host=&lt;myhost&gt;, user=&lt;myuser&gt;, password=&lt;non-null&gt;<br>DEBUG NTLM: type 1 message: Type1Message[suppliedDomain=&lt;mydomain&gt;,suppliedWorkstation=&lt;mypc&gt;,flags=0x00000201]<br>
DEBUG NTLM: type 1 message length: 59<br>A1 AUTHENTICATE NTLM<br>+<br>TlRMTVNTUAABAAAAASIAAAAAAAAAAAAAGwAbACAAAABNM0xYUElUMDMzLklOR0RJUkVDVC5JREkuSVQ=<br>A1 NO Logon failure: unknown user name or bad password.<br><br>Thanks!<br>