Jump to content
CHackbart

Pop3 and TLS1.2 in Indy 10

Recommended Posts

Hi,

 

this might sound stupid, but it has been a while since I touched this particular code. Somehow connect fails gracefully. The old code was working since ages, but the provider (ionos) switched to TLS 1.2. So I changed my code into:

  POP := TIdPOP3.Create(nil);
  SSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
  SSL.SSLOptions.Method := sslvTLSv1_2;
  POP.IOHandler := SSL; //SSL
  Pop.Port := 995;

 

I use openssl-1.0.2u-i386-win32 for OpenSSL. 

 

Does somebody have an idea? 

 

Christian

Share this post


Link to post
27 minutes ago, CHackbart said:

Does somebody have an idea?

Port 995 is POP3's implicit-ssl port, so make sure you set the TIdPOP3.UseTLS property to utUseImplicitTLS.

 

Alternatively, you can use POP3's explicit-tls port 587 with UseTLS=utUseExplicitTLS instead.

Edited by Remy Lebeau
  • Like 2

Share this post


Link to post

I now get some error messages on certain accounts with "invalid sequence number". I never saw this before.

 

Nevermind I found the problem.

Edited by CHackbart

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×