Re: [EXIM] another Q on virt. domains

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: vtmue
Data:  
Para: patl
CC: vtmue, eml
Assunto: Re: [EXIM] another Q on virt. domains
Hello and thanks!

the following answer provided by Pat works wonderful, just one thing:
the line:

file = ${lookup {$domain} partial-lsearch \
                {/etc/mail/LD-list} {$value} fail}
must read:
file = "${lookup {$domain} partial-lsearch \
                {/etc/mail/LD-list} {$value} fail}"


Greetings,
Volker

On Mon, 13 Jul 1998 patl@??? wrote:
> > Then it seems to me that I need several alias files for each domain
> > depending on the different hosts that can appear in the address.
> > Since I can't quite believe that this is true, I want to ask here for
> > assistance...
>
> I handle this by using a lookup expansion in the file path. Set up
> your LD-list file so that the value associated with the domain key
> is the path to use. (Or the base of the path if you will need to
> access various files in the virtual domain's private tree.)
>
>     *.dom.ain:    /etc/mail/dom.ain
>     *.mumble.com    /etc/mail/mumble.com

>
> Then modify the director to use the value of the lookup.
>
>     virtual:
>         driver = aliasfile
>         domains = partial-lsearch;/etc/mail/LD-list
>         no_more
>         file = ${lookup {$domain} partial-lsearch \
>          {/etc/mail/LD-list} {$value} fail}
>         search_type = lsearch

>
> -Pat


--
  -----------------------------------------------------------------------
   Volker T. Mueller             Freiburg im Breisgau BRD   "hope is the
   Student der Informatik        vtmue@???       denial of
   Albert-Ludwigs-Universitaet   +49 (0)761 35503            reality"



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