Unable to Authenticate using javamail
Hi,
I am unable to login to the sun messaging server using imaps. I am getting the following exception:
DEBUG: setDebug: JavaMail version 1.4.1ea-SNAPSHOT
* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] Messaging Multiplexor (Sun Java(tm) System Messaging Server 6.2-3.05 (built Nov 23 2005))
IMAP DEBUG: AUTH: PLAIN
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN
A0 OK CAPABILITY completed
IMAP DEBUG: AUTH: PLAIN
A1 LOGIN KBahadur mypassword
javax.mail.MessagingException: * BYE JavaMail Exception: java.net.SocketException: Connection reset;
nested exception is:
com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.net.SocketException: Connection reset
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:476)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
How do i change from auth=plain to auth=login in messaging server?
Thanks,
-
Kamal

