Re: [exim] rewriting delivery addresses via shell script

Etusivu
Poista viesti
Vastaa
Lähettäjä: Phil Pennock
Päiväys:  
Vastaanottaja: chris burgess
Kopio: exim-users
Aihe: Re: [exim] rewriting delivery addresses via shell script
On 2008-03-18 at 14:45 +1300, chris burgess wrote:
> I'm looking for an example Exim configuration which demonstrates rewriting
> the delivery address by passing the address to a script and using the
> returned value.


begin routers

magical_rewrite:
driver = redirect
domains = my.special.domain
data = ${run{/funky/translate/command $local_part}{$value}{$local_part}}
qualify_preserve_domain

This assumes that if the command fails, you want to preserve the
existing address. See spec.txt for documentation on ${run for
variations on syntax; if the overhead is too high then look also at
${readsocket to talk to a running daemon.

-Phil