[Exim] pipe transport environment variable

Página Inicial
Delete this message
Reply to this message
Autor: Viljoen Danie
Data:  
Para: 'exim-users@exim.org'
Assunto: [Exim] pipe transport environment variable

Hi All

I am trying to deliver to a different domain using an lsearch lookup and
can't figure out where I'm going wrong.

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

In /usr/exim/rewrite_options I have:

external.mydomain.com: mydomain.com
external.anotherdomain.com: anotherdomain.com

The exim paniclog error:

LOG: MAIN PANIC
== test@??? R=virtual_redirect T=procmail_redirect defer
(0): Expansio
n of "USER=${local_part}@${NEWDOMAIN}" from command "procmail -t -f
$header_from -m USE
R=${local_part}@${NEWDOMAIN} /usr/local/etc/procmailrc" in procmail_rewrite
transport fail
ed: unknown variable name "${NEWDOMAIN}"

thanks

Danie
Notice and Disclaimer
The information in this e-mail which includes any attachments is
confidential and is legally privileged.   It is intended solely for the
addressee, and access to this e-mail by anyone else is unauthorised.    If
you are not the intended recipient, any disclosure, copying, distribution or
action taken or omitted in reliance on it, is prohibited and may be
unlawful.   Please notify the sender immediately and delete the e-mail.
Whilst all reasonable steps are taken to ensure the accuracy and integrity
of information and data transmitted electronically and to preserve the
confidentiality thereof, ICL will not be held liable or responsible arising
out of information or data that is, for whatever reason, intercepted,
corrupted, infected with a computer virus or does not reach its intended
destination.    It is the responsibility of the named recipient(s) to ensure
that this e-mail and its contents are virus free.


Directors: M P Stares* (Chairman), E C de Kock (Managing), C A Brown, D J
Courtley* *British
International Computers (South Africa) (Pty) Limited
Registration Number: 1930/002267/07
For full details on our Disclaimer :
www.iclafrica.com