Re: [Exim] pipe transport environment variable

Góra strony
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
Dla: 'exim-users@exim.org'
Temat: Re: [Exim] pipe transport environment variable
On 2004-07-06 Viljoen Danie <Danie.Viljoen@???> wrote:
[...]
> This is what I have in exim:


> procmail_redirect:
> driver = pipe
> user = popuser
> path = "/usr/bin:/usr/local/bin:/usr/local/etc"
> environment = NEWDOMAIN=${lookup{$domain}lsearch{/usr/exim/rewrite_options}}
> command = "procmail -t -f $header_from -m USER=${local_part}@${NEWDOMAIN}
> /usr/local/etc/procmailrc"
> delivery_date_add = true

[...]

You cannot refer to environment variables with ${...}.

procmail_redirect:
driver = pipe
user = popuser
path = "/usr/bin:/usr/local/bin:/usr/local/etc"
command = "procmail -t -f $header_from -m USER=${local_part}@${lookup{$domain}lsearch{/usr/exim/rewrite_options}} /usr/local/etc/procmailrc"
delivery_date_add = true

                     cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"