[exim] Routing based on sender and recipient

Pàgina inicial
Delete this message
Reply to this message
Autor: tt-admin
Data:  
A: exim-users
Assumpte: [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!