Re: [Exim] Emulate Sendmails Virtual Domain

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Bart van Dommelen
CC: Exim-Users@Exim. Org
Betreff: Re: [Exim] Emulate Sendmails Virtual Domain
On Tue, 27 Feb 2001, Bart van Dommelen wrote:

> This is a sample for a virtusertable file:
>
> @smallorg.org            mailbox@???
> @anotherorg.org        %1@???
> webmaster@???    rich@???


Exim can't work with exactly that file, but it could work with

*@smallorg.org                 mailbox@???
*@anotherorg.org           $local_part@???
webmaster@???           rich@???


using an aliasfile director such as

virt:
driver = aliasfile
domains = smallorg.org : anotherorg.org : smartorg.org
include_domain
file = /that/file
search_type = lsearch*@
expand
no_more

There are other ways of handling the wildcard requirements. For example

v1:
driver = smartuser
domains = smallorg.org
new_address = mailbox@???

v2:
driver = smartuser
domains = anotherorg.org
new_address = $local_part@???

where both "domains" and "new_address" can be more complicated, of 
course.             


It's really your choice as to which method suits you best.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.