Συντάκτης: Renaud Allard Ημερομηνία: Προς: Dan_Mitton Υ/ο: Chump Chumpster, exim-users Αντικείμενο: Re: [exim] which IP address will be used
On 6/5/09 7:28 PM, Dan_Mitton@??? wrote: > Generally, any application (unless it explicitly specifies otherwise) will
> use the first interface on a multi-homed box for out bound connections.
>
> To be able to specify what IP address Exim uses, check out the 'Interface'
> setting in the smtp transport section.
>
>
Well, no, in fact it will not use the first interface. It will use what
its routing table tells it to do. It will go out using the most
appropriate interface following the routing table. If you want to have a
quick guess at how it will go, you can use traceroute.
However a "netstat -nr" is the most appropriate way to tell which
interface it will use.
As a general rule of thumb, if you don't have any static routes (or
multipath routing), it will go through the interface having the default
gateway unless you try to connect to computers "directly" connected on
the other interfaces.