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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Re: Routing based on *recipient* IP address
On 26/10/2023 10:08, Gandalf Corvotempesta via Exim-users wrote:
> TL;DR: how can i route, to a specific smarthost, all email based on
> the *recipient* mx IP address ?


- a manualroute router, pointing to the required smarthost
- placed in the routing chain early, to strip out from the
general "deliver to the MX" externals
- with a complicated "condition" to decide when it triggers
- condition does a dnsdb lookup, for mx
and matches the required IP address

   - you get to pick what "matches" means.  Will there always be only one?
     Do you need to check for one specific in a possible list returnd for
     the MX lookup?  Do you have a list of possibles?


--
Cheers,
Jeremy


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