Re: [exim] Virtual Hosting

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Shine, Gary
Ημερομηνία:  
Προς: 'Renaud Allard'
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Virtual Hosting
Thanks. Beginning to appreciate the power of exim. Basically the config file
is a language.

Regards
Gary

-----Original Message-----
From: Renaud Allard [mailto:renaud@llorien.org]
Sent: 26 January 2007 12:22
To: gshine@???
Cc: exim-users@???
Subject: Re: Virtual Hosting



Shine, Gary wrote:
> I have managed with help to solve most issues and EXIM is looking very

good.
> Last issue I have is with the same username at different domains. I
> need exim to understand that gary@domain1 is not the same as
> gary@domain2
>
> I have a file structured as below.
>
> gary@domain1:    dom1GARY
> gary@domain2:    dom2GARY

>
> How do I get exim to locally deliver to the correct POP Account or
> system account rather.
>
> Running the latest version of EXIM
>


You can have a router for virtual users like this
virtual_aliases:
         debug_print     = "R: virtual_aliases for $local_part@$domain"
         driver          = redirect
         allow_fail
         allow_defer
         data = ${lookup{$local_part@$domain}lsearch{/etc/virtaliases}}
         file_transport  = address_file
         pipe_transport  = address_pipe



--
010100100110010101101110011000010111010101100100
010000010110110001101100011000010111001001100100