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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Phil Pennock
Ημερομηνία:  
Προς: Marcin Mirosław
Υ/ο: exim-users
Αντικείμενο: Re: [exim] option "interface" in smtp transport and ipv6
On 2010-07-01 at 15:15 +0200, Marcin Mirosław wrote:
> Hello!
> I've set up smtp transport in this way:
> external_smtp_batv:
>                 driver          = smtp
>                 return_path     = ${prvs {$return_path}{BATVKEY}}
>                 dkim_domain     = +local_domains
>                 dkim_selector   = 100623
>                 dkim_private_key= /etc/ssl/poczta.cibet.pl.key
>                 dkim_canon      = relaxed
>                 interface       =
> ${lookup{$domain}lsearch{/etc/exim/domeny_interfejs.txt}{$value}{}}

>
> If recipient domain is found in appropriate file and destination mx
> doesn't have AAAA records everything works correctly. Problem appears
> when dest. mx has AAAA, then option "interface" is ignored and mail is
> sending using ipv6 proto.
> It looks there is bug in smtp tranposrt or option "interface" should
> named "interface_ipv4".


IPv6 addresses contain a colon. Exim's default list separator character
is a colon. interface takes an expanded string list.

Try <; at the start of the value of interface, to change the list
separator character, if you know that you're going to include : as data
from the lookup.

-Phil