Ticket #3989 defect closed fixed
t.mail.smtp.ESMTPSenderFactory requireTransportSecurity fails to recognize when SSL is in use
|Reported by:||jiggle||Owned by:||exarkun|
|Component:||Keywords:||ESMTP SSL TLS|
(diff, github, buildbot, log)
If one uses t.reactor.connectSSL() to establish an SSL connection to a SMTP server, and requireTransportSecurity=True, it still attempts to use TLS (over SSL) and usually fails (the server won't allow it).
It should recognize that TLS is already present...
Current work-around is to set requireTransportSecurity=False when creating an instance of the factory.
Failure in this case (from the server, with an SSL connection already present is): Failure: twisted.mail.smtp.TLSRequiredError: 502 Server does not support secure communication via TLS / SSL