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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Phil Pennock
Datum:  
To: Marcin Mirosław
CC: exim-users
Betreff: Re: [exim] option "interface" in smtp transport and ipv6
On 2010-07-01 at 23:45 +0200, Marcin Mirosław wrote:
> I know that i know nothing about exim, but maybe it's late for me:)
> When I used ignore_target_hosts on router, sending over ipv6 was
> completly disabled. And exim sends email using desired address ip. One
> bad and one good news;).


I thought the desire was to completely disable IPv6 for this Router.
Perhaps I'm not reading closely enough.

> P.S. Let's imagine there are more than one physical interface with v4
> and more than on with v6. In router i'm putting:
> interface = <; 1.2.3.4 ; 2001::1234:4321
> In this case, mail would be send:
> a) if domain has only A -> with outgoing ip 1.2.3.4
> b) if domain has only AAAA -> with outgoing ip 2001::1234:4321
> c) if domain has both records - > with outgoing ip 2001::1234:4321
> (because ipv6 is preffered over v4)
> ?


Correct. Depending upon your OS, you may be able to change the
preference ordering; it's RFC 3484, "Default Address Selection for
Internet Protocol version 6 (IPv6)". It says which addresses take which
precedence, and IPv4 addresses map into that. Section 10.3 shows how to
give IPv4 precedence.

On FreeBSD, see ip6addrctl(8) and /etc/ip6addrctl.conf which will be
used to set a policy used by getaddrinfo(3) to sort the results.

On Linux systems, see /etc/gai.conf

-Phil