----- Original Message -----
From: "Matthias Kluwe" <mk****@gmail.c om>
Have you verified that its your end that is broken, not gmail's, do
other servers give the same response ?
No, I have not -- I should have, as I know now: Connecting, starttls,
login and sending mail works fine without the above mentioned error
using my previous mail provider.
Does that mean Gmail is in error here? I don't know...
Looks like it is GMAIL , (though TLS is not required to be able to send via
smtp.gmail.com: 587 )
TLS using TLSlite also fails when connecting to GMAIL, but not to other
servers.
('5 send:', '(16:39:23) ehlo x\r\n')
('6 reply:', '(16:39:23) 250-mx.gmail.com at your service\r\n')
('6 reply:', '(16:39:23) 250-SIZE 20971520\r\n')
('6 reply:', '(16:39:23) 250-8BITMIME\r\n')
('6 reply:', '(16:39:23) 250-STARTTLS\r\n')
('6 reply:', '(16:39:23) 250 ENHANCEDSTATUSC ODES\r\n')
('5 send:', '(16:39:23) STARTTLS\r\n')
('6 reply:', '(16:39:23) 220 2.0.0 Ready to start TLS\r\n')
('Status:', '(16:39:24) 2202.0.0 Ready to start TLS')
('5 send:', '(16:39:24) ehlo x\r\n')
('6 reply:', '(16:39:24) 250-mx.gmail.com at your service\r\n')
('6 reply:', '(16:39:24) 250-SIZE 20971520\r\n')
('6 reply:', '(16:39:24) 250-8BITMIME\r\n')
('6 reply:', '(16:39:24) 250-AUTH LOGIN PLAIN\r\n')
('6 reply:', '(16:39:24) 250 ENHANCEDSTATUSC ODES\r\n')
('5 send:', '(16:39:24) noop\r\n')
('6 reply:', '(16:39:24) 250 2.0.0 OK\r\n')
('5 send:', '(16:39:24) rset\r\n')
('6 reply:', '(16:39:24) 250 2.1.0 Flushed d61sm2700367wra \r\n')
('5 send:', '(16:39:24) noop\r\n')
('6 reply:', '(16:39:24) 250 2.0.0 OK\r\n')
('5 send:', '(16:39:24) quit\r\n')
Traceback (most recent call last):
File "C:\test\tls.py ", line 103, in ?
s.quit()
File "C:\test\smtpli b.py", line 737, in quit
self.docmd("qui t")
File "C:\test\smtpli b.py", line 395, in docmd
return self.getreply()
File "C:\test\smtpli b.py", line 367, in getreply
line = self.file.readl ine()
File "C:\Python23\Li b\site-packages\tlslit e\FileObject.py ", line 152, in
readline
data = self._sock.recv (self._rbufsize )
File "C:\Python23\Li b\site-packages\tlslit e\TLSRecordLaye r.py", line 393,
in recv
return self.read(bufsi ze)
File "C:\Python23\Li b\site-packages\tlslit e\TLSRecordLaye r.py", line 182,
in read
for result in self.readAsync( max, min):
File "C:\Python23\Li b\site-packages\tlslit e\TLSRecordLaye r.py", line 201,
in readAsync
for result in self._getMsg(Co ntentType.appli cation_data):
File "C:\Python23\Li b\site-packages\tlslit e\TLSRecordLaye r.py", line 564,
in _getMsg
for result in self._getNextRe cord():
File "C:\Python23\Li b\site-packages\tlslit e\TLSRecordLaye r.py", line 737,
in _getNextRecord
raise TLSAbruptCloseE rror()
tlslite.errors. TLSAbruptCloseE rror