[Lazarus] Email sending program using Indy stopped working - seems to be an SSL problem
Michael Van Canneyt
michael at freepascal.org
Sat Jan 13 17:03:55 CET 2024
On Sat, 13 Jan 2024, Bo Berglund via lazarus wrote:
>>
>> Indy 10 uses a completely outdated version of the SSL library, which does
>> not have the most recent cryptographic routines (notably for tls).
>>
>> Most likely the server was updated and now rejects this old version.
>
> It looks likely. I will check with the ISP tech support on Monday (this company
> closes support on week-ends)..
>
>> There is of course a new version of the openssl library (3.2.x).
>> The interface of that library changed, but to the best of my knowledge,
>> indy does not support it.
>
> Then I have to switch to my backup plan, which is to do the mailing itself from
> a php script on my webserver (hosted at the same ISP server as the mail server
> is running on).
You could also use Synapse. I always prefer synapse over Indy.
>
> Then I have to modify the mailer program so it posts the data to that php
> handler instead of using the SMTP Indy component to do the job.
Or you use the system installed mailer. That's what I do.
I write the mail to file and invoke sendmail.
No hassle with TLS, failed connections and whatnot.
sendmail will do what it takes, even retry in case of temporary failure.
Michael.
More information about the lazarus
mailing list