Hi ,
We are new to implementing SSL POP3 communication using port 995. We have installed HMailServer and created account and trying to communicate through POP3 SSL.
We have used Security framework API to make client and server handshake and after that we are making CAPA , USER, PASS , STAT, LIST command and once we get the list of messages with size , we are initiating RETR 1, 2 ....
RETR command sometimes fails randomly on certain emails giving error errSSLDecryptionFail. Sometime RETR 1 processed correctly and when we are trying to fetch RETR 2 then SSLRead is generating error as errSSLDecryptionFail.
As per error description errSSLDecryptionFail :
- invalid data coming from the remote host,
- a damaged crypto key, or
- insufficient permission to use a key that is stored in the keychain.
We would like to know how to verify above error conditions to identify the issue.
I would like to update that when it again make handshake and then at that time RETR 2 is getting succeeds but other RETR is failing with same error. (other RETR meaning RETR 5 etc.)
So please help us to know how we can identify the root-cause and how we can fix it.
Is there any Sample that we can use to identify the issue and solve it.
Thanks & Regards,
Mohmad Vasim