Tim Hosking writes:
OK.
I'll try to explain this as clearly as possible, so please bear with me.
My Linux box runs Courier and Bind (and lots of other stuff). In the DNS it
is listed as the primary MX for trhosking.com. Until yesterday, the
secondary MX pointed at an offsite Linux box which had no active secondary
DNS.
Anyway, for whatever reason, the machine acting as the secondary MX was
offline for a short period. When I tried to send mail though
mail.trhosking.com to whoe...@trhosking.com, courieresmtpd failed with the
following error: (sorry about the wrapping).
-----------
Sep 4 12:39:16 OldPeculier courieresmtpd:
error,relay=::ffff:209.87.228.98,from=<ti...@trhosking.com>: 417 DNS lookup
failure: trhosking.com. Try again later.
-----------
Bearing in mind that the primary DNS for trhosking.com was alive and well
and running on the local machine, why should it have failed? When the
secondary MX came back online shortly afterwards, everything worked fine.
Surely it should only look for the secondary MX if the primary is
unavailable?
This error indicates something else. The error means that Courier did not
receive a response of any kind from the DNS server. Check your
/etc/resolv.conf, and make sure that the listed nameservers in there are
correct. Courier uses the nameservers listed in /etc/resolv.conf to resolve
DNS. Even if a nameserver is running on the same machine, it must be listed
in /etc/resolv.conf.