Hi Roy,

You need to set FullSSL to True. Otherwise you have no SSL/TLS at all.
This code works for me with POP3 (sorry, it's C++ instead of Delphi) and
includes certificate validation if you have a root certificates file:

    TPOP3Send* pop3 = new TPOP3Send();
    pop3->Timeout = 3000;
    pop3->UserName = "username";
    pop3->Password = "mypassword";
    pop3->TargetHost = "mail.domain.com";
    pop3->TargetPort = 995;
    pop3->FullSSL = true;
    pop3->AutoTLS = false;
    pop3->sock->ConnectionTimeout = 3000;
    pop3->sock->SetTimeout(3000);
    pop3->sock->SetRecvTimeout(3000);
    pop3->sock->SetSendTimeout(3000);
    pop3->sock->SSL->SSLType = LT_TLSv1_2;
    pop3->sock->SSL->CertCAFile =
System::Sysutils::ExtractFilePath(Application->ExeName) + "\\" +
"cacert.pem";
    pop3->sock->SSL->VerifyCert = true;
    pop3->Login();

You can use the pop3->sock->OnStatus and OnMonitor to watch what is
going on.


Dirk



Am 27.02.2016 um 09:11 schrieb Roy Lambert:
> Dirk
>
> With News.AutoTLS := False;
> News.FullSSL := False;
> News.Sock.SSL.SSLType := LT_TLSv1_1;
>
> ---------------------------
> Project1
> ---------------------------
> Sock: Connection timed out
> SSL: - 0
> ---------------------------
> OK
> ---------------------------
>
> I'm not sure if this is a step forward or not.
>
> Roy Lambert
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>


-- 

Dirk Jansen
Pfalzburger Str. 28
10717 Berlin
Tel.: 0 30 - 20 21 44 22

e-mail: jan...@d-jan.de


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to