Re: [Exim] virtual subdomains?

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: Re: [Exim] virtual subdomains?
On Thu, 16 Dec 1999 18:33:16 +0200, you wrote:
>Quoth Marc Haber on Wed, Dec 15, 1999:
>> However, testdomain.example.com has a wildcard MX for a number of
>> subdomains, and testdomain.example.com:*.testdomain.example.com is in
>> local_domains. How do I include arbitrary subdomains of
>> testdomain.example.com into the delivery to the same address like the
>> main domain itself?
>
>I solved this by doing yet another lookup. See the configuration
>sample C022 for an example.


That idea is neat. However, I found out that for my problem,

|virtual_domains:
|  driver                        = smartuser
|  domains                       = partial-lsearch;/etc/exim/virtual_domains
|  new_address                   = ${lookup{$domain}partial-lsearch{/etc/exim/virtual_domains}{$value}fail}


with

|root@q[25/525]:/etc/exim$ cat /etc/exim/virtual_domains
|domain.example.com: target-address
|*.domain.example.com: target-address
|root@q[26/526]:/etc/exim$

suffices ;-)

I left your configuration in anyway, it will be needed for more
complex cases.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29