[Pkg-exim4-users] How does exim3 recognizes that some hosts belongs to its domain?
Andreas Metzler
ametzler@downhill.at.eu.org
Sun, 5 Jun 2005 11:49:34 +0200
----------------
Pkg-exim4-users is a members-only list, please subscribe on
<http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users>
----------------
On 2005-06-02 Matej Cepl <cepl@surfbest.net> wrote:
> after lookup the question-answer pair in Exim3 FAQ Q0325 ("How can I arrange
> for mail on my local network to be delivered directly to the relevant
> hosts, but all other mail to be sent to my ISP's mail server? The local
> hosts are all DNS-registered and behave like normal Internet hosts."), I
> have made this router:
>
> localmail:
> driver = lookuphost
> transport = remote_smtp
> domains = vysocina
>
> 'vysocina' is an internal domain on our tiny home network (one server and
> three, soon to be just two, workstations) and this is a relevant part
> of /etc/hosts:
[...]
> 192.168.0.1 mitmanek.vysocina mitmanek
> 192.168.0.2 chelcicky.vysocina chelcicky
> 192.168.0.3 blahoslav.vysocina blahoslav
> 192.168.0.4 komensky.vysocina komensky
> 192.168.0.5 kosatec.vysocina kosatec
> 192.168.0.6 daniela.vysocina daniela
[...]
> This is what 'dig kosatec' on the server gives:
>
> mitmanek:/home/matej# dig kosatec
[...]
> kosatec. 0 IN A 192.168.0.5
[...]
> Why exim cannot understand that kosatec is in a domain vysocina (see
> attached /etc/exim/exim.conf)?
[...]
The domains-condition is more literal than you think it is,
ametzler@alioth.debian.org would not match "domains = debian.org". I
think you will need to use something like
domains = vysocina : *.vysocina
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
http://downhill.aus.cc/