[exim] Re: Routing based on *recipient* IP address

Góra strony
Delete this message
Reply to this message
Autor: Gandalf Corvotempesta
Data:  
Dla: Jasen Betts
CC: exim-users
Temat: [exim] Re: Routing based on *recipient* IP address
Il giorno ven 27 ott 2023 alle ore 10:10 Jasen Betts via Exim-users
<exim-users@???> ha scritto:
> Yes, in your config use the dnslookup router for that smarthost use ignore_target_hosts with an
> inverted host list ( that is put a ! in front of it )
>
> hostlist iran_ips = .....
>
>  iram_mx:
>    driver=dnslookup
>    ignore_target_hosts = ! +iran_ips
>    route_data=address_of_your_smarthost
>    transport = iran_smarthost


This is very interesting and much simpler than mine, but route_data
can't be used in a dnslookup router, only in manualrouter
And the manualrouter doesn't do a dnslookup

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/