Lähettäjä: Walt Reed Päiväys: Vastaanottaja: Thomas Stein Kopio: exim-users Aihe: Re: [Exim] exim and virtual domains
On Wed, Jul 30, 2003 at 09:50:37PM +0200, Thomas Stein said: > Okay i think i unterstood this. Hm....i think.
>
> virtual_aliases:
> driver = redirect
> domains = virtual1.com : virtual2.com
> allow_defer
> allow_fail
> data = ${lookup{$local_part}lsearch{/etc/aliases.$domain}}
> file_transport = address_file
> pipe_transport = address_pipe
> retry_use_local_part
> no_more
>
> This router is only interested in virtual1.com and virtual2.com, right?
> When a mail arrives with the domain !virtual* does this mail going
> directly to the next router? If i have further virtual domains which i
> wanna handle in another way i have to make a further router who takes
> care of, lets say "virtual3.com"? Something like:
>
> virtual_aliases_virtual3.com:
> driver = redirect
> domains = virtual3.com
> allow_defer
> allow_fail
> data = ${lookup for example a mysql db and so on}
> no_more
>
> Is this how it works?
That's right. When these routers are "interested" yet "decline", the
mail will get bounced as "Unroutable address" (which is what you want.)
If they are "interested" and "accept", (the lookup with possible
subsitution suceeds) then processing continues in the routers listed
below the current router - such as delivering to a local mailbox. The
"domains" line is a precondition on the router stating which domains it
will handle. If the condition is not met, it just ignores the router.