Re: [Exim] domain list

Top Pagina
Delete this message
Reply to this message
Auteur: Patrice Fournier
Datum:  
Aan: Martin Kaiser
CC: exim-users
Onderwerp: Re: [Exim] domain list
Hi,

Quoting Martin Kaiser <mk@???>:

> I'm using exim 3.35 on a mail server that hosts both company and
> customer domains.
>
> The company domains are stored in a macro within the exim
> configuration file
>
> COMPANY_DOMAINS = company.at:\
>                    company.biz:\
>                    company.ch:\
>                    company.com:\
>                    company.de:\
>                    company.info:\
>                    company.net:\
>                    company.org

>
> Customer domains are read from a file /conf/customerDomains.
> Unfortunately, the company domains are also listed in this file,
> there's no way for me to get rid of them.
>
> Now I would like to set up a director that acts upon customer domains
> only. Currently, it looks like this:
>
> virtualDomains:
>    driver = aliasfile
>    domains = !COMPANY_DOMAINS:/conf/customerDomains
>    file = /conf/aliases.$domain
>    ...


The ! only negates the first entry in the macro. You should use a second
macro which contain every company domains negated or instead of a macro,
use a file which would contain the list as this could be negated by
prepending a ! to the file path. Or even upgrade to Exim4 and use a
+domainlist. :)

HTH,

--
Patrice Fournier
pfournier@???