[Synalist] RE Re: libssl-dev not present in Debian 10, Buster

2020-05-22 Thread Daniel Acevedo via synalist-public
My bad.
I now realize that it didn't work because I needed to install "net-tools" 
first, in previous Debian versions net-tools was installed by default.

Daniel

* ORIGINAL MESSAGE *

Hi,

For me it is available in Buster: https://packages.debian.org/buster/libssl-dev

Patrick___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] libssl-dev not present in Debian 10, Buster

2020-05-21 Thread Daniel Acevedo via synalist-public
Hi,

After switching to Debian 10 from Debian 9, I found that my email program, 
which uses synapse IMAP component stopped working because Debian 10 doesn't 
include libssl-dev anymore in their repository.
I don't know if libssl-dev  is deprecated or if they skipped it because some 
other reason unknown to me (I searched the Internet but could not find much).
There is any plan to switch synapse to use another library under Linux?

-- 
Daniel Acevedo 


___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] TSMTPSend fails when using a VPN

2017-08-14 Thread Daniel Acevedo
Hello,

I created a basic email app in Linux, with Lazarus 1.6 and synapse.
It works well, but TSMTPSend fails when I connect to the Internet throught a 
VPN (I use PIA, Privatel Internet Access VPN).

Any ideas?

Thanks in advance,
Daniel--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SMTP issues

2017-06-08 Thread Daniel Acevedo
Thank you very much, adding ssl_openssl fixed the problem.

Now I have problems with SMTP, it worked like a charm with the previous version 
of Ubuntu, but now I get:

20170608-074744.883 7FFFEFAE6630HR_Error: -2,error:140770FC:SSL 
routines:SSL23_GET_SERVER_HELLO:unknown protocol

My code:

  smtp.UserName := user;
  smtp.TargetHost := SMTPHost;
  smtp.TargetPort := SMTPPort;
  smtp.Password := Password;
  if (SMTPHost ='587') then begin 
   SMTP.AutoTLS := True ;
   SMTP.FullSSL := false;
  end else begin
   SMTP.AutoTLS := false;
   SMTP.FullSSL := True ;
  end;
  if not smtp.Login then begin 
...

SendToRaw also fails.

Regards,
Daniel Acevedo

On 6/8/2017 6:53:35 AM Lukas Gebauer <gebyl...@mlp.cz> wrote:

  > > SSL/TLS support is not compiled!
  > > 
  > > Installing the libssl-dev package did not fix the problem.

  > Have you ssl_openssl unit included with your project?

  > If yes, then loading of OpenSSL libraries failed. 
  > You not need "dev" package with C sources. You need runtime SO 
  > libraries: libssl.so and libcrypto.so


  > -- 
  > Lukas Gebauer.

  > http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
  > http://geoget.ararat.cz/ - Geocaching solution


  > 
--
  > Check out the vibrant tech community on one of the world's most
  > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
  > ___
  > synalist-public mailing list
  > synalist-public@lists.sourceforge.net
  > https://lists.sourceforge.net/lists/listinfo/synalist-public




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] New synapse issues

2017-06-07 Thread Daniel Acevedo
Thank you for the information about sinadbg.

The error I get is:

SSL/TLS support is not compiled!

Installing the libssl-dev package did not fix the problem.

Any idea?

Daniel Acevedo


On 6/7/2017 3:53:02 PM Lukas Gebauer <gebyl...@mlp.cz> wrote:

  > > imap.FullSSL:=true;
  > > imap.AutoTLS:=true;

  > Never use both options at same time!

  > AutoTLS connect to standard IMAP port 143, and then it turn on 
  > encryption by special IMAP protocol command. It is called as explicit 
  > encryption.

  > FullSSL using impicit encryption. It create encrypted connection from 
  > the beginning. Because It cannot talk by standard unencrypted 
  > protocol commands, it must connect to different TCP port 993. 

  > Buth modes cannot be mixed. Use one or second, depending on your 
  > server.

  > If is still failed, then see what says imap.sock.lasterror, 
  > imap.sock.lasterrordesc, imap.sock.ssl.lasterror and 
  > imap.sock.ssl.lasterrordesc.

  > You can use synadbg.pas unit for detailed communication log too.



  > -- 
  > Lukas Gebauer.

  > http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
  > http://geoget.ararat.cz/ - Geocaching solution


  > 
--
  > Check out the vibrant tech community on one of the world's most
  > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
  > ___
  > synalist-public mailing list
  > synalist-public@lists.sourceforge.net
  > https://lists.sourceforge.net/lists/listinfo/synalist-public




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] New synapse issues

2017-06-07 Thread Daniel Acevedo
I'm sorry I was not specific enough.

I use SSL/TLS. please see code below:

 imap := TImapSend.Create;
imap.Username := UN;
imap.Password := PA;
imap.TargetPort:=IPORT;
imap.TargetHost := HO;
imap.FullSSL:=true;
imap.AutoTLS:=true;
if imap.Login then begin 
 ...

I use the SSL/TLS libraries that come with Linux (Ubuntu 16.04, Debian Jessie).
Should I install some specific library (in Ubuntu 15.10 the same code worked 
well).
I'm using Lazarus 1.6.

Thank you for all your good work.

Daniel Acevedo

On 6/7/2017 11:46:22 AM Lukas Gebauer <gebyl...@mlp.cz> wrote:

  > > I download the new version (synalist-code-206-trunk) and compiled again 
my program,
  > but IMAP still is not working.
  > > 
  > > Tested under Ubuntu 16.04 and Debian Jessie.
  > > 
  > > The same code (using synalist-code-203-trunk) works well with older Linux 
versions
  > (like Ubuntu 15.10).

  > What you mean by "not working"? What failed exactly? Are you using 
  > SSL/TLS? What versions? etc.


  > -- 
  > Lukas Gebauer.

  > http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
  > http://geoget.ararat.cz/ - Geocaching solution


  > 
--
  > Check out the vibrant tech community on one of the world's most
  > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
  > ___
  > synalist-public mailing list
  > synalist-public@lists.sourceforge.net
  > https://lists.sourceforge.net/lists/listinfo/synalist-public




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] New synapse issues

2017-06-06 Thread Daniel Acevedo
Hi,

I download the new version (synalist-code-206-trunk) and compiled again my 
program, but IMAP still is not working.

Tested under Ubuntu 16.04 and Debian Jessie.

The same code (using synalist-code-203-trunk) works well with older Linux 
versions (like Ubuntu 15.10).

Tested with Lazarus 1.6 and 1.4.4.

Regards,
Daniel


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Trouble with Synapse in some Linux versions

2017-05-15 Thread Daniel Acevedo
On 5/15/2017 6:22:16 AM Lukas Gebauer  wrote:

  > > I developed a program to send (IMAP) and receive email on Lubuntu 15.10 
with Lazarus
  > 1.4.4.
  > > There it runs perfectly.
  > > When I run it on newer Linux versions, luke Lubuntu 16.04, Xubuntu 16.04 
or Debian
  > Jessie, it runs but cannot send nor receive email. The login fails.
  > > 
  > > I installed Lazarus on Debian Jessie, and compiled there my program, 
thinking that
  > in that way it may be linked with the right libraries. It compiels fine, 
but still
  > it fails to connect by SMTP or IMAP when it runs.
  > > 
  > > May be Synapse, which is quite old, links with outdated ssh libraries? I 
don't
  > know.

  > Did you mean "it using SSL"? If yes, then Synapse not yet supporting 
  > OpenSSL 1.1.

  > However I have some patches by Patrick Chevalley (thank you!), so I 
  > plan to add support for latest OpenSSL versions soon.


  > -- 
  > Lukas Gebauer.

  > http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
  > http://geoget.ararat.cz/ - Geocaching solution


  > 
--
  > Check out the vibrant tech community on one of the world's most
  > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
  > ___
  > synalist-public mailing list
  > synalist-public@lists.sourceforge.net
  > https://lists.sourceforge.net/lists/listinfo/synalist-public

I will show you some code to make it more clear.

This code compiles and runs fine from inside Lubuntu 15.10:

var
imap: TImapSend;

...

imap := TImapSend.Create;
imap.Username := UN;
imap.Password := PA;
imap.FullSSL:=true;
imap.AutoTLS:=true;
imap.TargetPort:=IPORT;
imap.TargetHost := HO;
if imap.Login then begin
...
end;

The program fails to login when running from newer Linux versions (Lubuntu, 
Debian).

Following the tips I received I downloaded the last synapse from trunk and 
added these two lines, before the login line:

imap.Sock.SSL.SSLType:=LT_TLSv1_2;
imap.Sock.SSLDoConnect();

The problem is still there. Any insights? What I'm doing wrong.

Thanks in advance,
Daniel


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] Trouble with Synapse in some Linux versions

2017-05-14 Thread Daniel Acevedo
Hi,

I developed a program to send (IMAP) and receive email on Lubuntu 15.10 with 
Lazarus 1.4.4.
There it runs perfectly.
When I run it on newer Linux versions, luke Lubuntu 16.04, Xubuntu 16.04 or 
Debian Jessie, it runs but cannot send nor receive email. The login fails.

I installed Lazarus on Debian Jessie, and compiled there my program, thinking 
that in that way it may be linked with the right libraries. It compiels fine, 
but still it fails to connect by SMTP or IMAP when it runs.

May be Synapse, which is quite old, links with outdated ssh libraries? I don't 
know.
If somebody has some tip to make this work, please share it with me.

Regards,
Daniel


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public