On Thu, Dec 19, 2019 at 12:32 PM Lars Schimmer via Exim-users <
exim-users@exim.org> 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@x.y.z and not user1@d.f.g which is also used on the
> same server).
>
> How can I force that router to only work with user1@x.y.z ?
>
>
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
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to