Red Hat Bugzilla – Bug 419721
smtplib.py: can't connect to smtp server over ssl, port 465
Last modified: 2007-12-12 12:33:55 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run python
2. import smtplib
3. connect to some server that supports smtp over ssl (port 465), e.g.
server = smtplib.SMTP('smtp.gmail.com:465')
it freeze in a infinite loop
successful connection to server
This problem is solved in http://aleph-null.tv/downloads/ssmtplib.py.
server = ssmtplib.SMTP_SSL('smtp.gmail.com:465')
Is the smtplib sufficient for encrypted connection? Is there any other way how
to connect to smtp server over ssl with python? Or is this a bug?
Thanks for answers.
From what I can see smtplib only supports starttls, and not 465 SSL ports.
It doesn't look like a hard feature to add upstream though, and after it's in
Fedora I'd look at adding it for 5.4 etc. (assumption being it's a 2-10 line patch).
caolanm->jnavrati/james.antill: Is there already a known upstream python bug/RFE
logged for this or should we do this ?