Re: Postfix

Stephen Warren <[email protected]> Tue, 19 Aug 2008 09:49:57 -0600 (MDT)
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
On Tue, August 19, 2008 8:56 am, Márcio Luciano Donada wrote:
> mx:/home/luciano# cat TMDA_DELIVERY_FAILURE
> Uncaught Python 2.4.4 Exception (Tue Aug 19 11:53:52 2008):
> -----------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/local/tmda/bin/tmda-filter", line 53, in ?
>     execfile(os.path.join(execdir, 'tmda-rfilter'))
>   File "/usr/local/tmda/bin/tmda-rfilter", line 167, in ?
>     from TMDA import Defaults
>   File "./TMDA/Defaults.py", line 1632, in ?
> TypeError: Odd-length string
> Traceback (most recent call last):
>   File "/usr/local/tmda/bin/tmda-filter", line 67, in ?
>     from TMDA.Defaults import LOGFILE_DEBUG
>   File "./TMDA/Defaults.py", line 1632, in ?
> TypeError: Odd-length string

The failing code is this:

    CRYPT_KEY = binascii.unhexlify(open(CRYPT_KEY_FILE).read().strip())

Most likely, your ~/.tmda/crypt_key file is in the wrong format; it should
be a single-line hex string (hence an even number of characters, ignoring
leading/trailing white-space.)