Re: tmda-ofmipd: Internal support for SSL via tlslite package

[email protected] (Jason R. Mastaler) Wed, 28 Feb 2007 14:24:51 -0700
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
Stephen Warren <[email protected]> writes:

>> Do you have a diff against the stock tlslite-0.3.8 release?
>
> Here it is; see attached. Hopefully the cut/paste from SSH didn't screw
> it up too much!

Okay, I applied this patch to all three of my Python vesions and
retested.

Good news is that '--tls' seems to work perfectly now on all
combinations of Thunderbird, GyazMail, and Apple Mail.app running
against Python 2.3, 2.4, and 2.5.

Bad news is that '--ssl' results are inconsistent:

- Thunderbird: works on Python 2.5, and 2.4, but not on 2.3.

- GyazMail: doesn't work on any Python version.

- Mail.app: doesn't work on any Python version.

I've attached a couple tracebacks below in case those help.
tbird-ssl-py23.txt (application/octet-stream, 1.4 KB)
error: uncaptured python exception, closing channel <__main__.SMTPServer listening localhost:8025 at 0x10600f8> (exceptions.AssertionError: [/sw/lib/python2.3/asyncore.py|read|69] [/sw/lib/python2.3/asyncore.py|handle_read_event|384] [bin/tmda-ofmipd|handle_accept|1370] [bin/tmda-ofmipd|__init__|737] [bin/tmda-ofmipd|signon|762] [bin/tmda-ofmipd|push|767] [/sw/lib/python2.3/asynchat.py|push|159] [/sw/lib/python2.3/asynchat.py|initiate_send|218] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.3/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|229] [/sw/lib/python2.3/site-packages/tlslite/integration/AsyncStateMachine.py|_checkAssert|62])
error: uncaptured python exception, closing channel <__main__.SMTPSession connected 127.0.0.1:59112 at 0x10634e0> (exceptions.ValueError: [/sw/lib/python2.3/asyncore.py|write|77] [/sw/lib/python2.3/asyncore.py|handle_write_event|397] [bin/tmda-ofmipd|handle_write|465] [/sw/lib/python2.3/site-packages/tlslite/integration/AsyncStateMachine.py|inWriteEvent|150] [bin/tmda-ofmipd|outWriteEvent|488] [/sw/lib/python2.3/asynchat.py|handle_write|152] [/sw/lib/python2.3/asynchat.py|initiate_send|218] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.3/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|231] [/sw/lib/python2.3/site-packages/tlslite/integration/AsyncStateMachine.py|_doWriteOp|181] [/sw/lib/python2.3/site-packages/tlslite/TLSRecordLayer.py|writeAsync|261])
gyazmail-ssl-py25.txt (application/octet-stream, 1.4 KB)
error: uncaptured python exception, closing channel <__main__.SMTPServer listening localhost:8025 at 0x1400508> (<type 'exceptions.AssertionError'>: [/sw/lib/python2.5/asyncore.py|read|68] [/sw/lib/python2.5/asyncore.py|handle_read_event|384] [bin/tmda-ofmipd|handle_accept|1370] [bin/tmda-ofmipd|__init__|737] [bin/tmda-ofmipd|signon|762] [bin/tmda-ofmipd|push|767] [/sw/lib/python2.5/asynchat.py|push|160] [/sw/lib/python2.5/asynchat.py|initiate_send|219] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|229] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|_checkAssert|62])
error: uncaptured python exception, closing channel <__main__.SMTPSession connected 127.0.0.1:59111 at 0x1400580> (<type 'exceptions.ValueError'>: [/sw/lib/python2.5/asyncore.py|write|76] [/sw/lib/python2.5/asyncore.py|handle_write_event|397] [bin/tmda-ofmipd|handle_write|465] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|inWriteEvent|150] [bin/tmda-ofmipd|outWriteEvent|488] [/sw/lib/python2.5/asynchat.py|handle_write|153] [/sw/lib/python2.5/asynchat.py|initiate_send|219] [bin/tmda-ofmipd|send|502] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|231] [/sw/lib/python2.5/site-packages/tlslite/integration/AsyncStateMachine.py|_doWriteOp|181] [/sw/lib/python2.5/site-packages/tlslite/TLSRecordLayer.py|writeAsync|261])