[exim] Domain List and wild cards

Pàgina inicial
Delete this message
Reply to this message
Autor: Cliff Pratt
Data:  
A: exim-users
Assumpte: [exim] Domain List and wild cards
RHEL 4
Exim exim-4.43-1.RHEL4.1

I have a domainlist of local_domains, so:

domainlist local_domains = domain-A-01 : domain-B-01 : domain-C-01

and a router, so:

mymail:
driver = manualroute
route_list = !+local_domains domain-D-01
transport = remote_smtp

and an alias file that contains, as its last line:

root: admins@???

This is all working, but I'd like to write the domainlist more concisely,
because potentially the domainlist could become very long. I'd like to do
something like:

domainlist local_domains = domain-*-01

This does not work. Here's a snippet from 'exim -bt -d root':

route_item = !+local_domains domain-D-01
domain-A-01 in "domain-*-01"? no (end of list)
domain-A-01 in "!+local_domains"? yes (end of list)

So the mail gets routed to domain-D-01 which is not what I want.

I've tried the following domainlist versions, but none seem to work:

domainlist local_domains = ^domain-*-01
domainlist local_domains = \N^domain-*-01\N

Can I use wildcards in a domainlist? It seems from the documentation that I
can, from the 4th and 5th bullet points in section '10.8 Domain Lists' of
the manual.

What totally obvious point am I missing?

Cheers,

Cliff