Joshua Alexander <[EMAIL PROTECTED]> writes:

[snip explanation of managing user/virtual users... (thanks)]

> Here is my transport...
> 
> tmda_virtual_pipe:
>    driver = pipe
>    command = /usr/bin/python2 /usr/local/tmda/bin/tmda-filter
>    return_path_add
>    delivery_date_add
>    envelope_to_add
>    user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
>    group = mail
>    environment = EXTENSION=${substr_1:$local_part_suffix}:\
>                  [EMAIL PROTECTED]

First thing I see is that the -S switch will only call the script if
an environment variable named EXT (not EXTENSION) exists.  This is
qmail-specific.  That doesn't appear to be the cause of your problem,
though.  You could add an EXT (same contents as EXTENSION)
but... there may be an easier way.

You mention in a later message that you could set $HOME in the
environment before tmda-filter is called.  Actually, you said $home
but I'm hoping that equates to $HOME.  Anyhow, if that's true, then
you can simply use the '~' in your filter file (or in DELIVERY) to
represent that directory.  You wouldn't need the -S switch (or its
accompanying script) at all.

For example, if you're delivering to [EMAIL PROTECTED] and Exim has
set $HOME to '/home/pa/mail/waltons.org/jimbob', then the following
DELIVERY setting will deliver all mail to 'inbox'.

DELIVERY = "~/inbox"

That DELIVERY setting would actually work for all users, as long as
$HOME is set correctly when tmda-filter runs.


Tim

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

Reply via email to