Re: TMDA needs love with python 2.6+
Kevin Goodsell <[email protected]> Sun, 13 Feb 2011 21:54:24 -0800
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Feb 13, 2011 at 6:07 PM, Robert Withrow <[email protected]> wrote: > Current Linux distros ship with Python 2.6+, and latest TMDA has issues w= ith > these versions of Python. =A0I'm wondering if anyone is giving this some = love, or > if TMDA is dying a lingering death... > > Aside from the various deprecation warnings, OFMIPD suffers from these pr= oblems > (with either version of tlslite, raw 0.3.8, or the patched version): tlslite doesn't work with Python 2.5 and up, and the patched version seems to be a myth -- when I checked it, there were no actual differences. > > When trying to do plain auth: > > Incoming connection from: ('67.123.19.41', 48978) > Incoming connection to: ('10.160.134.140', 8025) > Data: 'EHLO [192.168.1.10]' > Data: 'AUTH PLAIN <stuff>' > trying imap authentication for [email protected]:143 > error: uncaptured python exception, closing channel <__main__.SMTPSession > connected 67.123.19.41:48978 at 0x26f4200> (<class 'socket.error'>:[Errno= 111] > Connection refused [/usr/lib/python2.6/asyncore.py|read|76] > [/usr/lib/python2.6/asyncore.py|handle_read_event|416] [/usr/local/bin/tm= da- > ofmipd|handle_read|1287] [/usr/lib/python2.6/asynchat.py|handle_read|158] > [/usr/local/bin/tmda-ofmipd|found_terminator|222] [/usr/local/bin/tmda- > ofmipd|smtp_AUTH|566] [/usr/local/bin/tmda-ofmipd|auth_challenge|434] > [/usr/local/bin/tmda-ofmipd|auth_verify|406] [/usr/local/bin/tmda- > ofmipd|verify_plain|332] [/usr/local/bin/tmda-ofmipd|run_remoteauth|668] > [/usr/lib/python2.6/imaplib.py|__init__|163] > [/usr/lib/python2.6/imaplib.py|open|229] > [/usr/lib/python2.6/socket.py|create_connection|514]) > It's not clear there's any Python version issue here, but I can't say for sure. It looks more like the IMAP server that's supposed to authenticate the user is not available. > When trying to do TLS: > > Incoming connection from: ('67.123.19.41', 33690) > Incoming connection to: ('10.160.134.140', 8025) > Data: 'EHLO [192.168.1.10]' > Data: 'STARTTLS' > Data: 'EHLO [192.168.1.10]' > error: uncaptured python exception, closing channel <__main__.SMTPSession > connected 67.123.19.41:33690 at 0x1040200> (<type 'exceptions.ValueError'= >: > [/usr/lib/python2.6/asyncore.py|read|76] > [/usr/lib/python2.6/asyncore.py|handle_read_event|416] [/usr/local/bin/tm= da- > ofmipd|handle_read|1285] [/usr/local/lib/python2.6/dist- > packages/tlslite/integration/AsyncStateMachine.py|inReadEvent|132] > [/usr/local/lib/python2.6/dist- > packages/tlslite/integration/AsyncStateMachine.py|_doReadOp|177] > [/usr/local/bin/tmda-ofmipd|outReadEvent|1312] > [/usr/lib/python2.6/asynchat.py|handle_read|158] [/usr/local/bin/tmda- > ofmipd|found_terminator|222] [/usr/local/bin/tmda-ofmipd|smtp_EHLO|463] > [/usr/local/bin/tmda-ofmipd|push|189] [/usr/lib/python2.6/asynchat.py|pus= h|186] > [/usr/lib/python2.6/asynchat.py|initiate_send|235] [/usr/local/bin/tmda- > ofmipd|send|1331] [/usr/local/lib/python2.6/dist- > packages/tlslite/integration/AsyncStateMachine.py|setWriteOp|231] > [/usr/local/lib/python2.6/dist- > packages/tlslite/integration/AsyncStateMachine.py|_doWriteOp|181] > [/usr/local/lib/python2.6/dist- > packages/tlslite/TLSRecordLayer.py|writeAsync|254]) > This is the familiar problem with tlslite and Python versions that are less than five years old. I explained it in some detail here: http://article.gmane.org/gmane.mail.spam.tmda.devel/6820 And I eventually followed up with a modified TMDA that uses OpenSSL instead of tlslite: https://github.com/KevinGoodsell/tmda-fork/wiki -Kevin ---------------------------------------------------------------------------= --- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ tmda-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmda-users