[exim] Re: Personalize MX

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: [exim] Re: Personalize MX
On 23/10/2024 11:22, Leonardo Boselli via Exim-users wrote:
> for certain domains i have to give a "special treatment" so for example use only lowest MX, o using only IPv4 or IPv6 connections.
> Suggestions ?


This is presumably applying to sending *to* these domains from your
Exim system.

It matters which of
           > only lowest MX, o using only IPv4 or IPv6
you actually need.

Assuming you still want MX lookups done, for the ipv4 case:
In your router chain have a "dnslookup" router placed before
the main one which is handling all the standard outbound.
Use an ipv4_only option.

For the other cases you mention, they are much more difficult.
You'd have to construct a string-expansion that does the
filtered DNS lookup you want, and use it in a "manualroute"
router.

Then there are the cases not covered by your examples.

[ If you merely wanted just to route to a single known IP,
   it would be far more simple ]



This does seem like a rather obscure need.
Why not fix your DNS?
-- 
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/