t.mail.smtp.ESMTPSenderFactory requireTransportSecurity fails to recognize when SSL is in use
|Reported by:||jiggle||Owned by:||Jean-Paul Calderone|
|Component:||Keywords:||ESMTP SSL TLS|
branch-diff, diff-cov, branch-cov, buildbot
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
Change History (14)
comment:2 Changed 5 years ago by
|Keywords:||SMTP SSL TLS added|
|Owner:||set to argonemyth|
comment:3 Changed 5 years ago by
|Keywords:||ESMTP review added; SMTP removed|
comment:5 follow-up: 6 Changed 5 years ago by
|Owner:||changed from Jean-Paul Calderone to argonemyth|