# Smtp using SSL, version problem with ssleay32.dll?

**URL:** <https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206>\
**Category:** Bugs\
**Created:** [April 13, 2022, 11:08am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206 "2022-04-13T11:08:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthur\_hoornweg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@arthur\_hoornweg](https://www.finalbuilder.com/forums/u/arthur_hoornweg)\
**Post date:** [April 13, 2022, 11:08am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/1 "2022-04-13T11:08:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 13, 2022, 10:30pm UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/2 "2022-04-13T22:30:42Z")

</div>

> [@arthur\_hoornweg](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![arthur\_hoornweg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@arthur\_hoornweg](https://www.finalbuilder.com/forums/u/arthur_hoornweg)\
**Post date:** [April 29, 2022, 8:32am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/3 "2022-04-29T08:32:08Z")

</div>

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](http://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](http://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](http://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.**

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 3, 2022, 5:27am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/4 "2022-05-03T05:27:53Z")

</div>

> [@Vincent](#):
>
> Log SSL Negotiation

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](http://finalbuilder.com) if there is anything sensitive.

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

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

```

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 3, 2022, 6:37am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/5 "2022-05-03T06:37:28Z")

</div>

> [@Vincent](#):
>
> Log SSL Negotiation

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](http://finalbuilder.com) if there is anything sensitive.

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

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

```

---

<div class="post-metadata">

**Author:** ![arthur\_hoornweg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@arthur\_hoornweg](https://www.finalbuilder.com/forums/u/arthur_hoornweg)\
**Post date:** [July 19, 2022, 11:12am UTC](https://www.finalbuilder.com/forums/t/smtp-using-ssl-version-problem-with-ssleay32-dll/7206/6 "2022-07-19T11:12:35Z")

</div>

Hi Vincent,

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

Kind regards,

Arthur Hoornweg

 ![settings-1](https://www.finalbuilder.com/forums/uploads/default/original/2X/f/fee44ea7b124620fe1bfe38e4cbf46e7b847a8a5.png)  
 ![settings-2](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/5ae4806623da8b77bddfa70e198f8ec8a8d56fde.png)  
 ![settings-3](https://www.finalbuilder.com/forums/uploads/default/original/2X/8/8ddd263dff8ab7022777e08fe0ebfaf77d729040.png)  
 ![settings-4](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a6ed544fd0e38c2558029e6c275c5f2051d29a83.png)  
 ![settings-5](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/53e90cb149bbe13a54789c82860b867fc0bd1f32.png)
