Lorenzo M. Catucci <lore...@sancho.ccd.uniroma2.it> added the comment:
On Fri, 17 Jun 2011, R. David Murray wrote: RDM> RDM> R. David Murray <rdmur...@bitdance.com> added the comment: RDM> RDM> According to your traceback you should be seeing the error in the RDM> first line (the creation of the SMTP_SSL object). If I run that line RDM> at the python prompt of python2.7.1, I get your connection failure. RDM> If I run it using 2.7 tip (or 3.3 tip), the connection succeeds. I RDM> know there have been other fixes in this area, but I don't know which RDM> one makes the difference. RDM> RDM> Torsten, can you test with 2.7.2 and/or 2.7 tip? RDM> RDM> I'm not sure what is left to do in this issue. Do you have an RDM> opinion, Lorenzo? RDM> Torsten, would you mind letting us know both the python and the .deb version by running $ python2.7 --version and $ dpkg -l python2.7 At least in debian's python2.7_2.7.1-8, default_port is still an instance attribute instead of a class attribute. If the ubuntu situation is the same, the missing patch is smtplib_01_default_port.diff , and you could work-around the problem by explicitly calling s = smtplib.SMTP_SSL("relay-auth.rwth-aachen.de", 465). The patch got in with: changeset: 69931:bcf04ced5ef1 branch: 2.7 parent: 69915:7c3a20b5943a user: Antoine Pitrou <solip...@pitrou.net> date: Sat May 07 19:59:33 2011 +0200 summary: Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. The last hunk, which fixes LMTP is still missing. @@ -776,8 +777,9 @@ authentication, but your mileage might vary.""" ehlo_msg = "lhlo" + default_port = LMTP_PORT - def __init__(self, host = '', port = LMTP_PORT, local_hostname = None): + def __init__(self, host = '', port = 0, local_hostname = None): """Initialize a new instance.""" SMTP.__init__(self, host, port, local_hostname) Have a nice week-end, yours lorenzo +-------------------------+----------------------------------------------+ | Lorenzo M. Catucci | Centro di Calcolo e Documentazione | | catu...@ccd.uniroma2.it | Università degli Studi di Roma "Tor Vergata" | | | Via O. Raimondo 18 ** I-00173 ROMA ** ITALY | | Tel. +39 06 7259 2255 | Fax. +39 06 7259 2125 | +-------------------------+----------------------------------------------+ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4470> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com