Smtp using SSL, version problem with ssleay32.dll?

Hello Finalbuilder team,

I am using Finalbuilder 8.0.0.3065 on Windows 10 and no matter what I tried, I couldn’t get the SMTP action to work against our E-mail server using SSL, I got all sorts of errors indicating that TLS negotiation failed.

Knowing that Finalbuilder was developed using an Embarcadero compiler, and knowing that some of the Delphi components I use myself are picky about which version of the OpenSSL libraries to use, I did a little experiment and replaced your version of ssleay32.dll (dll version 1.0.2.21, product version 1.0.2u) with a slightly older version which I had on my hard drive (dll version 1.0.2.14, product version 1.0.2n)

And much to my surprise, sending mails through SMTP using SSL works perfectly now .

So I suspect that Finalbuilder comes bundled with a version of this DLL that is not supported by your SMTP component.

If that was the case then we would have had thousands of bug reports by now - from ourselves too since we also use this action.

On the SMTP tab there is an option, Log SSL Negotiation, try turning on that and show us what it produces. The most likely cause is the client and the server not agreeing on common cyphers - which mail server are you using?

We are using Microsoft Exchange 2019.
My colleague just produced a log file, I copy and paste the relevant part here:

Connecting to host [webmail.geo-data.de] on port [587]
Status: Connected. : Connected.
Received: 29.04.2022 10:24:33 : 29.04.2022 10:24:33 Data: 220 BOSTON.logging.geo-data.de Microsoft ESMTP MAIL Service ready at Fri, 29 Apr 2022 10:24:33 +0200
Sent: 29.04.2022 10:24:33 : 29.04.2022 10:24:33 Data: EHLO AUGSBURG
Received: 29.04.2022 10:24:33 : 29.04.2022 10:24:33 Data: 250-BOSTON.logging.geo-data.de Hello [10.10.31.1]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-AUTH GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
Sent: 29.04.2022 10:24:33 : 29.04.2022 10:24:33 Data: STARTTLS
Received: 29.04.2022 10:24:33 : 29.04.2022 10:24:33 Data: 220 2.0.0 SMTP server ready
Status: Disconnected. : Disconnected.
Unable to Send Message (Connect)
SSL negotiation failed.

That log suggests the log ssl negotiation is turned off.

I thought we had access to exchange, but it seems MS have dumbed down our msdn subscription and it’s no longer available. So I cannot test against it here.

Can you show the settings you have on the action - feel free to move this issue to email - support[at] finalbuilder.com if there is anything sensitive.

We are using the Indy SMTP library - this is how the ssl features are configured

FSSLIOHandler.SSLOptions.SSLVersions := [sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2];

That log suggests the log ssl negotiation is turned off.

I thought we had access to exchange, but it seems MS have dumbed down our msdn subscription and it’s no longer available. So I cannot test against it here.

Can you show the settings you have on the action - feel free to move this issue to email - support[at] finalbuilder.com if there is anything sensitive.

We are using the Indy SMTP library - this is how the ssl features are configured

FSSLIOHandler.SSLOptions.SSLVersions := [sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2];

Hi Vincent,

please find attached (as images) the mail settings I use in Finalbuilder.

Kind regards,

Arthur Hoornweg