Re: [Synalist] New synapse issues

2017-06-08 Thread Benito van der Zander

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


You need the dev package, because that is where libssl.so and 
libcrypto.so are: 
https://packages.debian.org/de/jessie/amd64/libssl-dev/filelist


The normal package only has *.so.$versionnumber: 
https://packages.debian.org/de/jessie/amd64/libssl1.0.0/filelist





On 06/08/2017 11:53 AM, Lukas Gebauer 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





--
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-08 Thread Lukas Gebauer
> 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


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  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 Lukas Gebauer
> 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


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  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