Re: [Exim] Creating domainlist with SQL select

Pàgina inicial
Delete this message
Reply to this message
Autor: Rossz Vamos-Wentworth
Data:  
A: exim-users
Assumpte: Re: [Exim] Creating domainlist with SQL select
> I recently found out that:
>
> domainlist virtual_domains      = ${lookup mysql{SELECT DISTINCT host FROM
> users}}


You should read the emails from the last two days as this was covered. However,
I'll give you the highlights:

VIRTUAL_DOMAINS = SELECT DISTINCT concat(domain, ' : ') from users;
domainlist local_domains = localhost : ${lookup mysql{VIRTUAL_DOMAINS}}

Adjust to match your particular needs. I'm using lines even though all my domains
are virtual.

Rossz