Re: [exim] conditional forward, 2nd problem

Top Page
Delete this message
Reply to this message
Author: Jan Ingvoldstad
Date:  
To: Lars Schimmer
CC: Exim-users
Subject: Re: [exim] conditional forward, 2nd problem
On Thu, Dec 19, 2019 at 12:32 PM Lars Schimmer via Exim-users <
exim-users@???> wrote:

> Hi!
>
> I try to route all mails to one specific email address to another email
> server.
>
> I got:
> exchange_people:
>    driver = manualroute
>    domains = x.y.z
>    local_parts = user1
>    route_list = * "a.b.c::25"
>    transport = remote_smtp_sao
>    no_more

>
> Just does not work with this config.
>
> If I remove the "domains" line, it works for the local part. But as that
> local part is used in more than one routed domains, the wrong Email
> Address is already routed.
> (I just want user1@??? and not user1@??? which is also used on the
> same server).
>
> How can I force that router to only work with user1@??? ?
>
>

Use a condition statement, e.g. something like this:

condition = ${lookup{$local_part@
$domain}{/etc/exim4/exchange_people_addresses}}

Where you place one recipient address per line
in /etc/exim4/exchange_people_addresses.

--
Jan