Morvan <[EMAIL PROTECTED]> writes:

> How can I do it whit tmda in (/etc/tmdarc) for a wide config:
> DELIVERY: /var/spool/mail/$user or "${USERNAME}" don't work.

DELIVERY = '/var/spool/mail/%s' % os.environ.get('LOGNAME')

> I'm avoiding to use config per individual user (~/.tmda/...), its
> possible to say in /etc/tmdarc to look for users crypt_keys in some
> file like /etc/tmda/keys/crypt_key.$user (1 key file per user)

You can use tmda-filter's -c option like so in .forward/.qmail:

/usr/bin/tmda-filter -c /etc/tmda/keys/crypt_key.$LOGNAME

You can also set the $TMDARC environment variable in /etc/tmdarc which
will override the default choice of ~/.tmda/config:

os.environ['TMDARC'] = '/etc/tmda/keys/crypt_key.%s' % os.environ.get('LOGNAME')

> my /etc/tmdarc have: FILTER_INCOMMING=/etc/tmda/filters/incoming its
> possible to say for tmda to look first in this global incoming
> filter dir and too in the ~/.tmda/, in this order!

You can use the '-include' option to include the global file
/etc/tmda/filters/incoming from ~/.tmda/filters/incoming.  See
``Included Filters'' at http://tmda.net/config-filter.html

BTW, the Python examples above are untested and were written from
memory, but they should give you the general idea.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to