Re: [Exim] using several routers

Top Page
Delete this message
Reply to this message
Author: Kevin P. Fleming
Date:  
To: exim-users
Subject: Re: [Exim] using several routers
Marten Lehmann wrote:

> Hello,
>
> I have to following routers in my configuration (besides dnslookup):
>
> virtual_mailbox:
> driver = accept
> condition = ${if eq
> {}{${lookup{$local_part@$domain}lsearch{/vrmd/exim/mailboxes/pop3Accounts}}}{no}{yes}}
>
> transport = virtual_delivery
>
> virtual_alias:
> driver = redirect
> allow_defer
> allow_fail
> data =
> ${lookup{$local_part}lsearch*{${lookup{$domain}lsearch{/vrmd/exim/mailboxes/domainMapping}}/aliases
>
>
> These are working fine. As you can see if a mail comes in, it shall be
> delivered locally or redirected or maybe both. The latter is the
> problem: If it is delivered locally, the virtual_alias router is
> untouched. What do I have to change, so that both routers are used, always?
>


Just move the virtual_alias router above the virtual_mailbox router.
Exim processes them in the order they are listed in the configuration file.