[exim-dev] [Bug 2953] selectable local IP in smtp transport

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2953] selectable local IP in smtp transport
https://bugs.exim.org/show_bug.cgi?id=2953

Jasen Betts <jasen@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jasen@???


--- Comment #3 from Jasen Betts <jasen@???> ---
I've been running multiple IPs per interface for a while and I find that exim
binds the outgoing socket to the ip address I give for interface every time.
linux kernel 3.x and later

(have not tested in an IPV6 environment)

Ihe relevant code seems to be ip_bind() in ip.c:

int ip_bind(int sock, int af, uschar *address, int port)
{
union sockaddr_46 sin;
int s_len = ip_addr(&sin, af, address, port);
return bind(sock, (struct sockaddr *)&sin, s_len);
}


The seems to be on the caller to guess which of ip6 or ip4 the mx record will
resolve to this time.

It may make sense to allow that both IPV4 and IPV6 bind addresses can be
specified.

--
You are receiving this mail because:
You are on the CC list for the bug.