I am facing problem related to authentication with exchange server 2010. Same was working with 2007. Below is debugging logs.
Properties props = System.getProperties(); <br/>
props.setProperty("mail.debug.auth", "false"); <br/>
Session session = Session.getInstance(props, null); <br/>
session.setDebug(debug); <br/>
store = session.getStore("pop3"); <br/>
store.connect(host, user, password); <br/>
The Debug logs are:
+OK The Microsoft Exchange POP3 service is ready.
CAPA
+OK
TOP
UIDL
SASL NTLM GSSAPI PLAIN
USER
STLS
DEBUG POP3: authentication command trace suppressed
DEBUG POP3: authentication command failed
QUIT
+OK Microsoft Exchange Server 2010 POP3 server signing off.
javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:209)
at javax.mail.Service.connect(Service.java:345)