Re: [exim] Question about use of route_data as a condition t…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Phil Pennock
Ημερομηνία:  
Προς: Hubertus von Fuerstenberg
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Question about use of route_data as a condition to transport option
On 2011-07-22 at 18:43 +0200, Hubertus von Fuerstenberg wrote:
> The ldap query for route_data looks up the mailhost and yields either
> "imap.ise.fraunhofer.de" or "notesmail.ise.fraunhofer.de", so I thought
> of using route_data in the selection of transport but I always get the
> error that "route_data" is an unknown variable which is true since it is
> an option rather than a variable. So my question is: How can I extract
> the value of route_data an use it in a condition for my ${if} decision?


Repeat the query, perhaps using a macro. The result of the query should
be cached, so that only one LDAP lookup will be done. Use { exim -d }
to verify this.

-Phil