Bug 419721 - smtplib.py: can't connect to smtp server over ssl, port 465
smtplib.py: can't connect to smtp server over ssl, port 465
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: James Antill
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2007-12-11 08:14 EST by Jan Navratil
Modified: 2007-12-12 12:33 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-12-11 09:09:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Navratil 2007-12-11 08:14:46 EST
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

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. 
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
Comment 1 James Antill 2007-12-11 09:09:37 EST
 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).
Comment 2 Caolan McNamara 2007-12-12 12:33:55 EST
caolanm->jnavrati/james.antill: Is there already a known upstream python bug/RFE
logged for this or should we do this ?

Note You need to log in before you can comment on or make changes to this bug.