Re: [exim] Misunderstanding match_domain and sqlite ...

Góra strony
Delete this message
Reply to this message
Autor: Jakob Hirsch
Data:  
Dla: Jim Cheetham
CC: exim-users
Temat: Re: [exim] Misunderstanding match_domain and sqlite ...
Jim Cheetham, 2010-04-06 12:21:

>> domainlist active_domains = <\n ${lookup sqlite {/etc/exim4/mta.db
>> select name from domains where status="active"}}
> That is more elegant in the config file; and config file elegance is
> IMHO one of Exim's main strengths ...


most of the time, yes :)

> http://www.exim.org/exim-html-4.69/doc/html/spec_html/ch09.html#SECTsql
> mentions that multiple rows come back separated by newline, but sadly
> doesn't provide an example of "fixing" this for domain lists.


Maybe because the "natural" way of using domainlists would be this even
more elegant line:

domainlist active_domains = sqlite;/path/to/db select name from domains
where name='${quote_sqlite:$domain}'

(see spec 10.8)