Posted By:
JF_Seguin
Posted On:
Monday, June 24, 2002 09:41 AM
When trying to connect to a 5.5 Exchange server through IMAP, I find that I cannot do so every time. I suspect that it's because there are no more connections available at the Exchange server, but I'm not sure. Could someone confirm whether this is the case? Below are the debug messages of a successful connection and an unsuccessful connection. Success: DEBUG: getProvider() returning javax.mail.Provider [STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc] * OK Microsoft Exchange IMAP4rev1 server version 5.5.2651.76 (ottexch01.ottawa.hcl.com) ready A0 CAPABILITY * CAPABILITY IMAP4 IMAP4rev1 IDLE LITERAL+ LOGIN-REFERRALS MAILBOX-REFERRALS NA
More>>
When trying to connect to a 5.5 Exchange server through IMAP, I find that I cannot do so every time. I suspect that it's because there are no more connections available at the Exchange server, but I'm not sure. Could someone confirm whether this is the case?
Below are the debug messages of a successful connection and an unsuccessful connection.
Success:
DEBUG: getProvider() returning javax.mail.Provider
[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
* OK Microsoft Exchange IMAP4rev1 server version 5.5.2651.76 (ottexch01.ottawa.hcl.com) ready
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LITERAL+ LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE AUTH=NTLM
A0 OK CAPABILITY completed.
A1 LOGIN jf.seguin ********
A1 OK LOGIN completed.
A2 LIST "" inbox
* LIST (Marked) "/" INBOX
A2 OK LIST completed.
A3 STATUS INBOX (MESSAGES RECENT UNSEEN UIDNEXT UIDVALIDITY)
* STATUS INBOX (MESSAGES 31 RECENT 31 UIDNEXT 35165 UIDVALIDITY 4683 UNSEEN 0)
A3 OK STATUS completed.
A4 LOGOUT
* BYE Microsoft Exchange IMAP4rev1 server version 5.5.2651.76 signing off
Failure:
DEBUG: getProvider() returning javax.mail.Provider
[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
javax.mail.MessagingException: Connection refused: no further information;
nested exception is:
java.net.ConnectException: Connection refused: no further information
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:136)
at javax.mail.Service.connect(Service.java:221)
at javax.mail.Service.connect(Service.java:127)
at TestImap.main(TestImap.java:30)
<<Less