Re: [exim] option "interface" in smtp transport and ipv6

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: Marcin Mirosław
CC: exim-users
Sujet: Re: [exim] option "interface" in smtp transport and ipv6
On 2010-07-01 at 21:47 +0200, Marcin Mirosław wrote:
> > Use something like (untested):
> >    ignore_target_hosts = <; ::
> > on the Router to refuse to use IPv6 addresses.  Or there's
> > dns_ipv4_lookup as a global option, per "13.6 Disabling IPv6".

>
> But i don't want to disable ipv6!:)
> I.E. My domain: host hermes.mejor.pl
> hermes.mejor.pl has address 193.238.12.139
> hermes.mejor.pl has IPv6 address 2001:470:1f0b:84c::2
>
> From other host (on which i setup transport using interafce=1.2.3.4) i'm
> trying to send mail to domain "mejor.pl". I'd like to send mail via ipv4
> (not via ipv6), because there are two links, and link with ipv4 only is
> faster than link with ipv6. So i put domain "mejor.pl" to file
> "domeny_interfejs.txt" and i'm expecting that exim will use address
> (ipv4) taken from file, and sends via ipv4, although ipv6 can be used
> for this domain.
> For other domain, not mention in file, i'd like exim to use ipv6 if
> domain is capable.


Right, so you'll get exactly your desired behaviour if you implement the
main suggestion: use ignore_target_hosts on the Router which uses the
domeny_interfejs.txt file, to block all IPv6 addresses *for that
Router*.

-Phil