Re: [Exim] pipe transport environment variable

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: 'exim-users@exim.org'
Sujet: 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"