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

2017-05-21 Thread Stefan Fischer
Hi, 

I try to implement a multitenancy HTTPS server, based on synapse or 
fphttpserver. Which is the recommended code base to start with?

Is there a ready to use unit? I need also user based login.

Thanx,

Stefan



-Ursprüngliche Nachricht-
Von: Michael Van Canneyt <mich...@freepascal.org>
Gesendet: Mon 15 Mai 2017 10:14
An: Ararat Synapse <synalist-public@lists.sourceforge.net>
Betreff: Re: [Synalist] Trouble with Synapse in some Linux versions




On Sun, 14 May 2017, Daniel Acevedo wrote:

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

Normally it should link to the available library, which should be the latest.

Is it possible that there is a mismatch between client/server supported 
protocols?
I have had this when connecting to MS-Office APIS; I had to specifically 
specify a
protocol instead of the default 'try all protocols'.

Michael.

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


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

2017-05-15 Thread Lukas Gebauer
> 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


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

2017-05-15 Thread Michael Van Canneyt


On Sun, 14 May 2017, Daniel Acevedo wrote:

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

Normally it should link to the available library, which should be the latest.

Is it possible that there is a mismatch between client/server supported 
protocols?
I have had this when connecting to MS-Office APIS; I had to specifically 
specify a
protocol instead of the default 'try all protocols'.

Michael.

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