tmda-ofmipd raises exception on TLS

Ole Wolf <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
I'm having problems getting tmda-ofmipd to accept TLS connections.

I've installed the tlslite application with the TMDA-patch for Python 2.5 and 
created a server certificate and a server key. However, when I attempt to 
create a connection as follows (or via an email client):

telnet localhost 8025
EHLO there
STARTTLS
EHLO there

tmda-ofmipd crashes with the following debug output (beginning from the telnet 
connection):

Incoming connection from: ('192.168.1.2', 48301)
Incoming connection to: ('192.168.1.2', 8025)
Data: 'EHLO localhost'
Data: 'STARTTLS'
error: uncaptured python exception, closing channel <__main__.SMTPSession 
connected 192.168.1.2:48301 at 0x9bd1d4c> 
(<class 'tlslite.errors.TLSLocalAlert'>:decode_error: Traceback (most recent 
call last):
  File "/usr/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py", line 564, 
in _getMsg
    for result in self._getNextRecord():
  File "/usr/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py", line 748, 
in _getNextRecord
    raise SyntaxError()
SyntaxError: None
 [/usr/lib/python2.5/asyncore.py|read|68] [/usr/lib/python2.5/asyncore.py|
handle_read_event|390] [/usr/bin/tmda-ofmipd|handle_read|1285] 
[/usr/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|
inReadEvent|123] 
[/usr/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|
_doHandshakeOp|157] 
[/usr/lib/python2.5/site-packages/tlslite/TLSConnection.py|
handshakeServerAsync|1032] 
[/usr/lib/python2.5/site-packages/tlslite/TLSConnection.py|
_handshakeWrapperAsync|1537] 
[/usr/lib/python2.5/site-packages/tlslite/TLSConnection.py|
_handshakeServerAsyncHelper|1089] 
[/usr/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py|_getMsg|706] 
[/usr/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py|_sendError|450])

Can someone help me figure out what's going wrong?

--Ole
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHhn6AzxilSvlp81ARAlYWAJ4zbnnQ+EUqLm5awYP6V3hL3c3InwCfTNYZ
otWl6EJtXH9yyJVpbg08Rzk=
=CYWJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.