Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.005 Beiträge
 
Delphi 2009 Professional
 
#3

AW: SMTP SSL mit Indy10

  Alt 22. Jan 2014, 09:19
Die Unterscheidung der Einstellungen kann zum Teil schon über den gewählten Port (465 oder 587) geschehen:

Zitat:
For SSL on port 465, the server expects your client to initiate an SSL handshake immediately upon connecting, before the server then sends an encrypted Greeting. UseTLS=utUseImplicitTLS does that, but UseTLS=utUseExplicitTLS does not. When UseTLS=utUseExplicitTLS, TIdSMTP will expect the server to send an unencrypted Greeting immediately, which would explain the hang in select() - the server is not sending any data!

For TLS on port 587, the server is expecting the client to connect initially unencrypted and then send an explicit STARTTLS command when it is ready to initiate encryption. UseTLS=utUseExplicitTLS does that, but UseTLS=utUseImplicitTLS does not.

http://stackoverflow.com/questions/1...77518#11677518

In einer (älteren) Indy Dokumentation wird auch noch auf die Capabilities Property hingewiesen:

Zitat:
Use Capabilities to determine if the server supports use of StartTLS prior to performing authentication for the SMTP session.
("Zur Verschlüsselung über SSL/TLS wird heute das STARTTLS-Kommando empfohlen. Es läuft auf dem gleichen TCP-Port wie unverschlüsseltes SMTP. Alternativ kann SMTP über SSL (SMTPS) verwendet werden und benötigt einen eigenen TCP-Port, hierfür hat sich 465 eingebürgert." - SMTP)
Michael Justin
habarisoft.com

Geändert von mjustin (22. Jan 2014 um 09:24 Uhr)
  Mit Zitat antworten Zitat