ImapClient with implicit SSL does not work

0

Hello,

I am using the IMAPClient, and get "Server closed connection" error, when connecting using implicit SSL encryption (Explicit encryption hangs until server closes too).

The IMAP server has already established the SSL connection and responded with
* OK IMAP4rev1 server ready at 10/15/12 08:34:22
waiting for commands, but the client does not send any command.

I am using this source to connect

ImapClient client = new ImapClient();

client.Timeout = 120000;

client.Connect("imap.sample.at", 993, ComponentPro.Net.SecurityMode.Implicit);

This throws the exception:

[ImapException: The server has closed the connection.]
   ComponentPro_HM.ComponentPro_QOC(Byte[] ComponentPro_B4B, Int32 ComponentPro_LOC, Int32 ComponentPro_A4B) +501
   ComponentPro_HM.ComponentPro_XBF(Int32& ComponentPro_Y1E) +63
   ComponentPro.Net.Mail.ImapClient.ComponentPro_SBF() +107
   ComponentPro.Net.Mail.ImapClient.ComponentPro_QBF(String ComponentPro_PKC, ArrayList ComponentPro_LBF) +38
   ComponentPro.Net.Mail.ImapClient.ComponentPro_SAF(String ComponentPro_PKC, ComponentPro_GM ComponentPro_U6C, String ComponentPro_L1C, Boolean ComponentPro_KBF) +292
   ComponentPro.Net.Mail.ImapClient.ComponentPro_QAF(String ComponentPro_PKC, Object[] ComponentPro_O2B) +40
   ComponentPro.Net.Mail.ImapClient.ComponentPro_FCF(String ComponentPro_J4D) +58
   ComponentPro.Net.Mail.ImapClient.ComponentPro_YBF(String ComponentPro_ZNC, Int32 ComponentPro_AOC, ComponentPro_SJ ComponentPro_O2B, SecurityMode ComponentPro_ZBF) +1172
   ComponentPro.Net.Mail.ImapClient.Connect(String serverName, Int32 serverPort, SecurityMode securityMode) +269

But using System.Net.Security.SslStream to connect to the same port and host is successfull and gets response from the server as expected.

* OK IMAP4rev1 server ready at 10/04/12 23:36:54 

Also using Outlook 2010 to connect to this mail server using SSL encryption works without errors.

Please correct this bug.

Regards,
Klaus-Dieter

edited 11/16/2017 12:41:36 AM
asked 10/4/2012 7:48:57 PM
add a comment

3 Answers

0

Please send us the log file generated by our component. Please have a look at this topic: Adding log

edited 12/5/2017 4:38:21 PM
answered 11/16/2017 12:41:36 AM
add a comment
0

Hello ComponentPro Team,

I have additional indications for this error:

Communication WITHOUT SSL

* OK IMAP4rev1 server ready at 10/16/12 13:32:33

R00001 CAPABILITY

* CAPABILITY IMAP4rev1 IMAP4 AUTH=LOGIN IDLE CHILDREN UIDPLUS AUTH=NTLM AUTH=CRAM-MD5

R00001 OK CAPABILITY completed

 

Communication with SSL

* OK IMAP4rev1 server ready at 10/16/12 13:33:07

R00001 CAPABILITY

ComponentPro.Net.Mail.ImapException: The server has closed the connection.

(Again: using System.Net.Security.SslStream and issuing these commands do not cause the server to close the connection)

I want to note, that SSL with SMTP and POP3 are working without any problems.

I hope, this helps you to find the error.

Regards

 
answered 11/16/2017 12:41:36 AM
add a comment
0

Hi,

I have sent you this data thru email on 17th October.

Do have some news?

Besides that, I have another question re your SSL Implementation:

Which Ciphers do you support?

 
answered 11/16/2017 12:41:36 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged imap or ask your own question.