"Todd A. Jacobs" <[EMAIL PROTECTED]> writes:

> I just installed TMDA/0.62 (Python 2.1.1 on linux-i686), intending to use 
> it over .forward, and am getting a lot of errors, such as:
> 
>     Traceback (most recent call last):
>       File "/usr/bin/tmda-inject", line 119, in ?
>       from TMDA import Defaults
>       File "/usr/lib/python2.1/site-packages/TMDA/Defaults.py", line 198, in ?
>       CRYPT_KEY = binascii.unhexlify(open(CRYPT_KEY_FILE).read().strip())
>     TypeError: Odd-length string
> 
> Firstly, I created the keyfile with tmda-keygen, so why can't it
> read it?

If you copied and pasted, it looks like you missed a single character
on one end or the other.  Just re-run tmda-keygen and make sure you
get the whole string.

> Secondly, what is the MINIMUM config needed to make tmda work with 
> procmail and pine?

It depends on your MTA.  It appears you're running Postfix.  Just
follow the Postfix instructions on the site.  You need to make sure
that you enable 'recipient_delimiter' in the main.cf file.

http://www.tmda.net/config-pre.html

> I *did* read the avilable documentation on the website, but I didn't find 
> anything that really resembled a tmda cookbook for a minimal single-user 
> (not system-wide) configuration. Where else should I look?

There's not much difference in single-user versus system setup.  Most
of the documentation is actually oriented toward the individual user.

For instance, the /etc/tmdarc file is not terribly useful for a single
user.  The documentation says it's optional, so you can ignore it.

Create a ~/.tmda/config with a RECIPIENT_DELIMITER variable that
matches the Postfix 'recipient_delimiter' (either '+' or '-').  Also
ensure that MAIL_TRANSFER_AGENT and DELIVERY are set in your config
file.

If you're new, be aware that the documentation sometimes still
mentions ~/.tmdarc but ~/.tmda/config is the preferred location for
the configuration file.  Both still work at this point.

Make sure you have a ~/.forward file that either runs tmda-filter or
runs procmail.

If your .forward file runs tmda-filter, then set the DELIVERY variable
in ~/.tmda/config to deliver valid mail through procmail.

http://www.tmda.net/config-vars.html#DELIVERY

If you have procmail in your .forward, see the instructions for
running tmda-filter from procmail at

http://www.tmda.net/config-server.html#exim-postfix

You will want to set DELIVERY to deliver to a mailbox or maildir in
this case.  Don't set it to deliver through procmail if you run
tmda-filter from ~/.procmailrc, since you'll create a loop.

That will take care of incoming mail.

For outgoing mail with tagged addresses, you need to configure pine to
send the mail using tmda-sendmail and not /usr/sbin/sendmail (or
whatever it uses).  I do not know how to do that, but I think people
have mentioned how in the archive a couple of times.

You do not need to use the outgoing tagged addresses in order to have
the incoming filter work, so if I were you, I'd forget about the
outgoing for now and just make sure you get the incoming side
working.  After that's working, you can explore tagging your outgoing
addresses.


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

Reply via email to