Re: [Exim] virtual-host routing question

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Alexey Y. Promokhov
Date:  
À: Mark Edwards
CC: exim list
Sujet: Re: [Exim] virtual-host routing question
On Thu, 1 May 2003, Mark Edwards wrote:

> I have the following router set up in exim 4.12 to route mail to
> various virtual hosts:
>
> virtual:
>    driver = redirect
>    allow_fail
>    allow_defer
>    domains = lsearch;/usr/local/etc/mail/local_domains
>    data =
> ${lookup{$local_part}lsearch*{/usr/local/etc/mail/virtual/$domain}}
>    file_transport = address_file
>    pipe_transport = address_pipe
>    no_more

>
> Works great. Is there a way to force exim to continue expanding
> strings in the "alias" files, even if the string matches a local user?


We have the following configuration:

virtual:
driver = redirect
domains = dsearch;/usr/local/etc/exim/virtual
qualify_preserve_domain = true
data=${lookup{$local_part}lsearch{/usr/local/etc/exim/virtual/$domain} { ${if eq {$value} {} {$local_part+$domain@???} {$value}} } {: fail: user unknown}}
no_more
allow_fail

virtual1:
driver=accept
domains=virtual.valinor.gptelecom.ru
transport=local_virtual_delivery

File in /usr/local/etc/exim/virtual/ (ayp.msk.ru for example) may
contains:

ayp #User ayp exists in this domain
postmaster: ayp #Alias postmaster to ayp
abuse: postmaster #Mail also goes to ayp
user1: user1@??? #Start processing /usr/local/etc/exim/virtual/survival.msk.ru
user2: someuser@??? #Deliver to this adderss

and so on...


--
Alexey Y. Promokhov, system administrator
Joint Stock Venture "GP Telecom", Moscow, Russia