Re: [Exim] domain list question

Góra strony
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
Dla: schnozzy
CC: Lists - Exim
Temat: Re: [Exim] domain list question
Kelley Reynolds wrote:
> In the documentation, it specifies that
>
> domainlist foo = pgsql;select domain from domains where domain='$domain';
>
> doesn't actually return the domain, but just returns either success or failure. Will
>
> domainlist foo = ${lookup pgsql{select domain from domains}{$value}fail}
>
> create an actual list of domains as if I'd specified them out manually, or do I have to replace newlines with : after the lookup to simulate having just written it out?


Why do you want to do that anyway? It would return one domain per line,
so it's not "list-compatible", you could replace all newlines with a
colon. But that will still return the WHOLE domainlist, that exim
compares afterwards. Your first lookup is ok, and will do what you want.

Nico