Mailing List Archive

[Bug 2953] selectable local IP in smtp transport
https://bugs.exim.org/show_bug.cgi?id=2953

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|medium |low

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2953] selectable local IP in smtp transport [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2953

Andrew Aitchison <exim@aitchison.me.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |exim@aitchison.me.uk

--- Comment #1 from Andrew Aitchison <exim@aitchison.me.uk> ---
As I see it, an IP on a shared interface that must specifically be used is
likely to be important enough to have a unique name.
Can we currently specify the sending IP address by name
(other than using that name as the hostname, which may be sufficient in many
cases) ?

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2953] selectable local IP in smtp transport [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2953

--- Comment #2 from Jeremy Harris <jgh146exb@wizmail.org> ---
No, you cannot specify the sending IP address (except indirectly, for
the case when an interface has exactly one IP).

It's unclear what "name" you mean. As the docs say, the existing
"interface" option takes (a list of) IP addresses. Not names, of any kind.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2953] selectable local IP in smtp transport [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2953

Jasen Betts <jasen@treshna.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |jasen@treshna.com

--- Comment #3 from Jasen Betts <jasen@treshna.com> ---
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.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2953] selectable local IP in smtp transport [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2953

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.exim.org/show_
| |bug.cgi?id=2922

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##