Re: [Exim] Creating domainlist with SQL select

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Rossz Vamos-Wentworth
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: 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