Circa 2001-Jun-06 19:28:27 +0200 dixit Phil Pennock:
: I have a laptop which DHCP's addresses. On one network, sure I can fix
: the server to effectively give me a static address. But not on all
: networks, and I want to be able to roam wider. I can easily tell apmd
: to HUP exim after it's re-run dhclient, so noticing changes isn't an
: issue.
:
: What I'm trying to do is get Exim to recognise as local the DNS
: associated with the IP addresses of its interfaces. Not arbitrary DNS,
: just that for the reverse DNS. [see below for clarification]
:
: local_domains_include_host just adds in the kern.hostname value.
:
: local_domains_include_host_literals works just fine. It's excellent.
: If assigned 192.168.1.101, I can mail <postmaster@???> and
: it works. :^) However, if the reverse for that points to, say,
: box-101.dhcp.example.org then I want to treat that domain as local too.
:
: Can anyone see a way of doing this, without rebuilding Exim's config
: file from templates? A funky little option which I'm missing somewhere?
I would probably do something like this:
local_domains = localhost : @ : /etc/exim/local-domains
Then, after you rerun your DHCP client, use 'host' to look up your new
IP address, and write that name to /etc/exim/local-domains.
--
jim knoble | jmknoble@??? |
http://www.jmknoble.cx/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)