Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:using': 0.04; 'subject:when': 0.07; 'python': 0.07; 'retcode': 0.09; 'subject:broken': 0.09; '>>>': 0.12; 'received:74.125.82.174': 0.12; 'received:mail-wy0-f174.google.com': 0.12; 'skip:[ 20': 0.12; '"copyright",': 0.16; '"credits"': 0.16; '49,': 0.16; '[errno': 0.16; '[gcc': 0.16; '__init__': 0.16; 'certfile)': 0.16; 'failure.': 0.16; 'ftplib': 0.16; 'keyfile,': 0.16; 'linux2': 0.16; 'msg:': 0.16; 'self.sock': 0.16; 'send:': 0.16; 'starttls': 0.16; 'to:name:python-list@python.org': 0.16; 'traceback': 0.16; '(most': 0.16; 'skip:r 30': 0.19; 'cc:2**0': 0.20; 'last):': 0.23; 'skip:[ 10': 0.26; 'raise': 0.29; 'skip:" 30': 0.29; 'skip:3 10': 0.29; 'cc:addr:gmail.com': 0.31; 'charset:iso-8859-15': 0.31; "skip:' 10": 0.32; 'to:addr:python-list': 0.32; 'skip:e 20': 0.33; 'test': 0.33; 'record': 0.34; 'file': 0.35; 'header:User-Agent:1': 0.35; 'think': 0.36; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:196': 0.61; 'ready': 0.63; 'alert': 0.65; 'skip:= 30': 0.69; 'restart': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:cc:subject:to:mime-version :content-transfer-encoding:from:date:message-id:user-agent; bh=dS5LfUQ3+C/0Xit+wZVRRZatEzNNk1GqtV+jJIDHF4A=; b=T3Qc3h8iujcYxq9Xrm3y5lJsxV5mkOfTDSvT7C0G6pIYfxv3Mb4DWnyHjEeM4ZCF0f k7mrixqKahei6bJux/lu/w+03fPgNCzmdZTVzS+8Ept9/sJDRTzat9pfMqhpMlnwW3UM Znk+ah1HpjyMHg9skWRpDVrlssQD7oajYqQQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:cc:subject:to:mime-version:content-transfer-encoding :from:date:message-id:user-agent; b=Ll/bl4RGNRtOMG3DGoV0ELf5fkvGrOetiWaktpCsKNMi4OVEua3ooxu+n8hzjDzyaf gWhTnc3dtVD1TIzRhj8ih6cGVDE0XQUFEUIAPYqikTpOkSZD3ucocxHpVuqbypRv2dux q+QahdMKAFOWa44CV/GwdXRXJg1nrySMavJCw= Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Subject: smtplib is broken when using TLS To: "python-list@python.org" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nirinA raseliarison Date: Wed, 18 May 2011 00:32:19 +0300 User-Agent: Opera Mail/11.10 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305667888 news.xs4all.nl 49175 [::ffff:82.94.164.166]:54827 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5620 i think this has the same origin as the ftplib test failure. Python 3.2.1rc1 (default, May 17 2011, 22:01:34) [GCC 4.6.0] on linux2 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART >>> ================================ >>> send: 'ehlo [127.0.0.1]\r\n' reply: b'250-mx.google.com at your service, [41.188.13.184]\r\n' reply: b'250-SIZE 35882577\r\n' reply: b'250-8BITMIME\r\n' reply: b'250-STARTTLS\r\n' reply: b'250 ENHANCEDSTATUSCODES\r\n' reply: retcode (250); Msg: b'mx.google.com at your service, [41.188.13.184]\nSIZE 35882577\n8BITMIME\nSTARTTLS\nENHANCEDSTATUSCODES' send: 'STARTTLS\r\n' reply: b'220 2.0.0 Ready to start TLS\r\n' reply: retcode (220); Msg: b'2.0.0 Ready to start TLS' Traceback (most recent call last): File "/root/template_mail_text.py", line 49, in server.starttls() File "/usr/local/lib/python3.2/smtplib.py", line 649, in starttls self.sock = ssl.wrap_socket(self.sock, keyfile, certfile) File "/usr/local/lib/python3.2/ssl.py", line 509, in wrap_socket ciphers=ciphers) File "/usr/local/lib/python3.2/ssl.py", line 266, in __init__ raise x File "/usr/local/lib/python3.2/ssl.py", line 262, in __init__ self.do_handshake() File "/usr/local/lib/python3.2/ssl.py", line 441, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [Errno 1] _ssl.c:392: error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac -- nirinA