FAQ / Routing in general / Q0208



Q0208

Question

I can't get a lookup to work in a domain list. I'm trying this:

domainlist local_domains = @:localhost:${lookup pgsql{SELECT ...

Answer

Does the lookup return a colon separated list of domains? If not, you are using the wrong kind of lookup. The most common way of using a lookup in a domain list is something like this:

domainlist local_domains = @:localhost:pgsql;SELECT ...

Using that syntax, if the query succeeds, the domain is considered to be in the list. The value that is returned is not relevant.



FAQ / Routing in general / Q0208


CategoryFrequentlyAskedQuestions

EximWiki: FAQ/Routing_in_general/Q0208 (last edited 2008-09-25 11:39:33 by localhost)