Ticket #3989 defect closed fixed
t.mail.smtp.ESMTPSenderFactory requireTransportSecurity fails to recognize when SSL is in use
| Reported by: | jiggle | Owned by: | exarkun |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Keywords: | ESMTP SSL TLS | |
| Cc: | fei@… | Branch: | branches/esmtp-ssl-3989 |
| Author: | exarkun | Launchpad Bug: |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

