Re: [exim] Solved: Routing based on sender and recipient

Pàgina inicial
Delete this message
Reply to this message
Autor: tt-admin
Data:  
A: exim-users
Assumpte: Re: [exim] Solved: Routing based on sender and recipient
Found the solution by using "local_parts":

# driver = manualroute
# senders = important@???
# domains = example.com
# local_parts = foo1: foo2
# transport = remote_smtp
# route_list = * 192.168.178.1


-----Ursprüngliche Nachricht-----
Von: Exim-users [mailto:exim-users-bounces+tt-admin=intranett.de@exim.org]
Im Auftrag von tt-admin via Exim-users
Gesendet: Mittwoch, 4. Januar 2023 06:32
An: exim-users@???
Betreff: [exim] Routing based on sender and recipient

Good Morning,

we need to route some mail traffic based on sender AND recipient if that's
possible.

Configuration as of now:

Everything from * to @example.com goes to 10.10.10.10

myrouter:
driver = manualroute
domains = example.com
transport = remote_smtp
route_list = * 10.10.10.10

What we tried:

#testrouter:
# driver = manualroute
# senders = important@???
# domains = example.com
# transport = remote_smtp
# route_list = * 192.168.178.1

What we need:

Everything from important@??? AND to foo1@???--->
192.168.178.1

Everything else from important@??? should still go to
10.10.10.10.

So we need to take one sender address, and route everything from that sender
address to a defined list of recipients on 192.168.178.1, while everything
else from that sender should still go to 10.10.10.10.

Example with two addresses, that we want to route in a different way:

>From important@??? and to foo1@??? --> 192.168.178.1
>From important@??? and to foo2@??? --> 192.168.178.1
>From important@??? and to root@??? --> 10.10.10.10



I see routers can decided based on domains and based on senders, but i don't
see they can decide based on senders AND recipients.

Have a nice day!


--
## 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/