"Mike Usmar" <[EMAIL PROTECTED]> writes:

> I just upgraded TMDA on one of the spare mail servers here to version 1.0
> (from ver 0.56) as a test,

Whoa!  Big jump. :)

> and all seemed to go well, most things work, except that when mail
> is being processed by tmda, it stops and gives me this error in the
> logfile.debug :
>
> Uncaught Python 2.1.3 Exception (Thu Jan  8 15:00:13 2004):
> -----------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/bin/tmda-filter", line 53, in ?
>     execfile(os.path.join(execdir, 'tmda-rfilter'))
>   File "/usr/bin/tmda-rfilter", line 891, in ?
>     main()
>   File "/usr/bin/tmda-rfilter", line 887, in main
>     do_default_action(default_action, 'action_incoming', bouncetext)
>   File "/usr/bin/tmda-rfilter", line 471, in do_default_action
>     bouncegen('request')
>   File "/usr/bin/tmda-rfilter", line 772, in bouncegen
>     send_bounce(bounce_message, mode)
>   File "/usr/bin/tmda-rfilter", line 441, in send_bounce
>     ar.create()
>   File "./TMDA/AutoResponse.py", line 126, in create
>   File "./TMDA/pythonlib/email/MIMEText.py", line 37, in __init__
>   File "./TMDA/pythonlib/email/Message.py", line 241, in set_payload
>   File "./TMDA/pythonlib/email/Message.py", line 279, in set_charset
>   File "./TMDA/pythonlib/email/Encoders.py", line 85, in encode_7or8bit
> AttributeError: encode
>
>
> Here's my current setup:
> tmda-keygen -V
> TMDA/1.0 "Cannonade" (Python/2.1.3 on linux2)
>
> Is it because I am still running python 2.1.3 ? Should I upgrade to python
> 2.2 ? Although I did read that tmda 1.0 should work with python 2.1 and
> higher.

The problem is that the code is trying to 'encode' something that
isn't a string; at a guess, a list.

> I tried searching through the mailing list archives, but no luck.
> Any help?

Has your 'confirm_request.txt' template been customized?  Is it a
multi-part MIME message?  That's probably the cause of the above
error.  Take a look at

http://tmda.net/howto-template.html

for information about how to customize templates in later versions of
TMDA.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to