Description of problem: Version-Release number of selected component (if applicable): python-2.4.3-19.el5 How reproducible: Always 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') Actual results: it freeze in a infinite loop Expected results: successful connection to server Additional info: This problem is solved in http://aleph-null.tv/downloads/ssmtplib.py. I.e.: import ssmtplib server = ssmtplib.SMTP_SSL('smtp.gmail.com:465') # connected 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. Jan Navratil
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 ?