Re: [exim] Pass variable from router to transport

Etusivu
Poista viesti
Vastaa
Lähettäjä: Phil Pennock
Päiväys:  
Vastaanottaja: Christian Gregoire
Kopio: exim-users
Aihe: Re: [exim] Pass variable from router to transport
On 2010-02-22 at 18:00 +0000, Christian Gregoire wrote:
> Can the resulting value of a database lookup in a router condition directive be passed to the transport ?


Yes.

router_foo:
address_data = WHATEVER

transport_baz:
hosts = $address_data

While the cachability of results is discarded before starting
transports, you should be okay with the same query twice in one Router.
Run exim with debugging (-d+lookup) to confirm this.

Regards,
-Phil