Re: notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias

From: Kai Henningsen (kaih@khms.westfalen.de)
Date: Sat Sep 08 2001 - 08:16:00 EST


saw@saw.sw.com.sg (Andrey Savochkin) wrote on 07.09.01 in <20010907112935.A26353@castle.nmd.msu.ru>:

[MTA]

> But how do you check for the destination IP being in the "local ones"?

Exim does it like this (approximately):

1. There is a list of domains considered "local".

2. There is an option that means the list will automatically contain the
local hostname

3. There is another option that says the list will automatically include
the [] notion of local interface addresses, as determined the usual way

4. The admin can add to that list anything (s)he wants.

(Note: 2 and 3 are both optional!)

As for netmasks: just use netmask notation when configuring how to treat
hosts (such as who to allow relaying for). The probability that looking at
the local network interfaces gives the right answer is close to zero.

MfG Kai
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:14 EST