Συντάκτης: Jeremy Harris Ημερομηνία: Προς: exim-users Αντικείμενο: Re: [exim] Need more informations about remote_smtp defer exim4 log
On 08/01/2019 09:55, Simon via Exim-users wrote: > Connecting to smtp-in.orange.fr [80.12.242.9]:25 from 176.31.234.153 ...
> unable to bind outgoing SMTP call to 176.31.234.153: Address already in
> use
We're trying to bind the local address, before making the connection.
This is done in order to force use of a specified interface, because
of the transpotr configuration. The bind syscall uses an IP address
and port zero (which should mean "any port", and have the kernel assign
an ephemeral port). There's no good reason for that to fail, that I can
think of, beyond being totally out of ports.
Is the system configured with a very restricted range for ephemeral
ports? Is it very busy, as shown by "netstat -pant"? What OS, distro
and version?
> And here is output with strace > [pid 16479] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
> [pid 16479] setsockopt(8, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> [pid 16479] bind(8, {sa_family=AF_INET, sin_port=htons(0),
> sin_addr=inet_addr("176.31.234.153")}, 16) = -1 EADDRINUSE (Address
> already in use)