Florin Andrei: > Wietse Venema wrote: > > Florin Andrei: > >> Florin Andrei wrote: > >>> Is there a way to bind the listener to an interface using the interface > >>> name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? > > > > No. The bind(2) system call specifies an address. Not an interface, > > and not the route. Connections with source address of X are not > > necessarily sent out via interface X. The interface is chosen > > depending on the destination of the connection. > > I understand. It makes perfect sense from the perspective of the programmer.
Especially considering that there is not a standardized API do do these things. Not all the world is Linux, and the demand for doing this is near zero. Wietse