Re: [Exim] Specifying mulitple domains per user?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Suresh Ramasubramanian
Date:  
À: James O'Gorman, exim-users
Sujet: Re: [Exim] Specifying mulitple domains per user?
At 02:07 PM 5/18/2003 +0100, James O'Gorman wrote:
>can specify in /etc/mail/virtusertable something like:
>
>someone@???      bob
>person@???  jim
>anotherperson@??? jim
>some@???        some@???

>
>Is there any way to do similar in exim? /etc/aliases just seems to
>specify "user" (as in user@domain) to go to "local-part" - doesn't help
>with multiple domains!


I use multiple files - one for each virtual domain

virtual_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/usr/local/etc/exim/aliases/$domain}}
domains = lsearch;/usr/local/etc/exim/virtual_domains
user = mailnull
group = mail
file_transport = address_file
pipe_transport = address_pipe
no_more

One file each - /usr/local/etc/exim/aliases/domain1.com, domain2.com etc.

         srs