On Wed, 24 Oct 2001, I wrote:
> In Exim 4 there is a convenient way of matching "any domain with an MX
> pointing to this host", but not for "any domain with an MX pointing to
> one of these hosts". hosts_treat_as_local doesn't help, because that is
> a list of host names.
I lied.
I've just got round to looking at the code to sort this out, and I find
it is already sorted. hosts_treat_as_local is indeed a list of names,
but it is checked when Exim 4 is testing "any domain with an MX pointing
to this host", so what is really checked is "any domain with an MX
pointing to the local host or to a host named in hosts_treat_as_local".
However, the check on hosts_treat_as_local is a test on the name only,
whereas Exim is a bit more rigorous for the real local host - it checks
whether the IP addresses refer to local interfaces.
This isn't quite the same as "any domain with an MX pointing to
one of these hosts", but is is good enough to solve your problem?
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.