smtplib is broken when using TLS

  • Thread starter nirinA raseliarison
  • Start date
N

nirinA raseliarison

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.
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 <module>
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top