Re: [EXIM] Accepting Mail for All Subdomains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Harald Meland
Dátum:  
Címzett: Jared Proudfoot
CC: exim-users
Tárgy: Re: [EXIM] Accepting Mail for All Subdomains
[Jared Proudfoot]

> My problem is when it trys to determine that alias file to use. My director
> looks like this:
>
> virtual_aliases:
> driver = aliasfile;
> domains = partial-lsearch;/usr/exim/virtual-domains,


As the above line doesn't care whether the lookup returns a value or
not, you could use the "*.domain.com" entry to return the value
"domain.com", and then

> no_more,
> file = /usr/exim/domains/$domain/aliases.db,


substitute this for the above line:

file = /usr/exim/domains/${lookup{$domain} partial-lsearch {/usr/exim/virtual-domains} {$value}}/aliases.db

(All of this is untested, of course :)

--
Harald

--
*** Exim information can be found at http://www.exim.org/ ***