Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Travis Siegel via fpc-pascal


On 5/6/2021 7:54 AM, Bo Berglund via fpc-pascal wrote:



On Wed, 5 May 2021, Nico Neumann via fpc-pascal wrote:


Indy has support for OpenSSL 1.1.1, just not officially (yet).
See https://github.com/IndySockets/Indy/pull/299


THe SMTP server I use requires SSL on port 465.
I have only ever used Indy for things like this.

Use package laz_synapse (in online package manager), unit smtpsend.

I'm using it in FPC and Delphi even today.
In general, it works a lot easier/simpler than Indy.

Unless you need some weird/outdated protocols,
I highly recommend Synapse over Indy.


So only if the emailing synapse is guaranteed GUI-free can I use it.

I may even use some external program for mailing by using TProcess to run it
But what? THere used to be something called sendmail or similar in Linux but
right now I cannot see it on my boxes. And I am uncertain if it can do SSL
logins and accept attachment files.

For some reason, sendmail has fallen out of favor, (likely because of 
it's conceived difficult setup), and most linux distros now use postfix, 
which in my opinion isn't any easier to configure, but it does allow for 
a wider range of options.


If you check your linux boxes, you'll probably see postfix as the mta, 
and it can indeed be called to transfer mail from programs. I don't have 
any examples of this, but the documentation says it can be done.  I 
don't know if there's another program application programmers use, but 
with some digging, you should be able to get it to work.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Arne Hanssen via fpc-pascal


Den 06.05.2021 13:54, skreiv Bo Berglund via fpc-pascal:

[..]
I may even use some external program for mailing by using TProcess to run it
But what? THere used to be something called sendmail or similar in Linux but
right now I cannot see it on my boxes. And I am uncertain if it can do SSL
logins and accept attachment files.


There is 'msmtp':

https://marlam.de/msmtp/

If everything else fails...?


[..]


--
Best regards
Arne Hanssen

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Bo Berglund via fpc-pascal
On Thu, 6 May 2021 14:04:07 +0200 (CEST), Michael Van Canneyt via fpc-pascal
 wrote:

>On Thu, 6 May 2021, Bo Berglund via fpc-pascal wrote:
>
>>> I highly recommend Synapse over Indy.
>>>
>>
>> I had great troubles a year or so ago when I tried using some serial packages
>> based on synapse because they brought in GUI stuff that made it impossible to
>> compile a simple program aimed at running as a service on a server style 
>> linux
>> box...
>
>Yes, because you were using the wrong package.
>
>If you use the correct package (laz_synapse.lpk), there will be no issue.
>
>See e.g. here:
>
>https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/
>
>But you can install it using the Online package manager.
>
>In the online package manager, DO NOT use the pl_synapsevs package.
>
>You myst use the laz_synapse (Synapse 40.1) package. 
>It does not have GUI dependencies.
>
>I use it myself in a headless FPC-created server running on linux, since many 
>many
>years, and use it in a Delphi-created server also running on linux, so I'm very
>confident it works as described :-)
>
>Michael.

Thanks, I will have a look!


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Michael Van Canneyt via fpc-pascal



On Thu, 6 May 2021, Bo Berglund via fpc-pascal wrote:


I highly recommend Synapse over Indy.



I had great troubles a year or so ago when I tried using some serial packages
based on synapse because they brought in GUI stuff that made it impossible to
compile a simple program aimed at running as a service on a server style linux
box...


Yes, because you were using the wrong package.

If you use the correct package (laz_synapse.lpk), there will be no issue.

See e.g. here:

https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/

But you can install it using the Online package manager.

In the online package manager, DO NOT use the pl_synapsevs package.

You myst use the laz_synapse (Synapse 40.1) package. 
It does not have GUI dependencies.


I use it myself in a headless FPC-created server running on linux, since many 
many
years, and use it in a Delphi-created server also running on linux, so I'm very
confident it works as described :-)

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-06 Thread Bo Berglund via fpc-pascal
On Wed, 5 May 2021 23:20:08 +0200 (CEST), Michael Van Canneyt via fpc-pascal
 wrote:

>
>
>On Wed, 5 May 2021, Bo Berglund via fpc-pascal wrote:
>
>> On Wed, 5 May 2021 16:51:06 +0200 (CEST), Michael Van Canneyt via fpc-pascal
>>  wrote:
>>
>>>
>>>
>>> On Wed, 5 May 2021, Nico Neumann via fpc-pascal wrote:
>>>
 Indy has support for OpenSSL 1.1.1, just not officially (yet).
 See https://github.com/IndySockets/Indy/pull/299
>>>
>>> I am aware of this. Good luck getting that to work on linux. 
>>> It's a total mess and not nearly ready for production use.
>>>
>>> In the end I simply installed an older version of openssl.
>>>
>>
>> Any directions on how to accomplish this?
>>
>> Or is there some other way in Lazaus for Linux to add a function to send an
>> email containing attachments (files with monitoring result data)?
>> THe SMTP server I use requires SSL on port 465.
>> I have only ever used Indy for things like this.
>
>Use package laz_synapse (in online package manager), unit smtpsend.
>
>I'm using it in FPC and Delphi even today. 
>In general, it works a lot easier/simpler than Indy.
>
>Unless you need some weird/outdated protocols, 
>I highly recommend Synapse over Indy.
>

I had great troubles a year or so ago when I tried using some serial packages
based on synapse because they brought in GUI stuff that made it impossible to
compile a simple program aimed at running as a service on a server style linux
box...

And this application is precisely the one I am working on now (after having
replaced the LazSerial and SynSerial etc packages with a serial class I wrote
myself using the FPC built-in serial unit. And using Indy10 for the networking
parts since I have used that for some 20 years or so.

So only if the emailing synapse is guaranteed GUI-free can I use it.

I may even use some external program for mailing by using TProcess to run it
But what? THere used to be something called sendmail or similar in Linux but
right now I cannot see it on my boxes. And I am uncertain if it can do SSL
logins and accept attachment files.

Anyway, I received a reply from Remy L concerning Indy and that there is a fix
for the oipenssl version available, which he has not tested. I will try to do
that test in the near future. It would (if working) require no extra coding in
my application just an update of Indy10 itself. :)


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal