Re: [Exim] Creating domainlist with SQL select

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rossz Vamos-Wentworth
Date:  
À: exim-users
Sujet: 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