From owner-freebsd-hackers Tue Dec 31 15:25:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADFC37B401 for ; Tue, 31 Dec 2002 15:25:37 -0800 (PST) Received: from c18609.belrs1.nsw.optusnet.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA83243EC5 for ; Tue, 31 Dec 2002 15:25:35 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.c18609.belrs1.nsw.optusnet.com.au (localhost.c18609.belrs1.nsw.optusnet.com.au [127.0.0.1]) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6) with ESMTP id gBVNPY79000292 for ; Wed, 1 Jan 2003 10:25:34 +1100 (EST) (envelope-from peter@server.c18609.belrs1.nsw.optusnet.com.au) Received: (from peter@localhost) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6/Submit) id gBVNPXbE000291 for freebsd-hackers@freebsd.org; Wed, 1 Jan 2003 10:25:33 +1100 (EST) Date: Wed, 1 Jan 2003 10:25:33 +1100 From: Peter Jeremy To: freebsd-hackers@freebsd.org Subject: Re: Sendmail ignoring MX records Message-ID: <20021231232533.GA203@server.c18609.belrs1.nsw.optusnet.com.au> References: <20021226105711.GA4379@server.c18609.belrs1.nsw.optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021226105711.GA4379@server.c18609.belrs1.nsw.optusnet.com.au> User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 26, 2002 at 09:57:11PM +1100, I wrote: >One of my systems insists on trying to deliver mail directly to A >record addresses rather than via MX records. Thanks to everyone who responded. Turns out it was an operator error :-(. I tried setting various trace flags and eventually found my error: At some stage in the past, I'd created an /etc/mail/service.switch that included "hosts files". (I now recall that I'd been unsuccessfully trying to convince that system to never need DNS for another project. I must have forgotten to remove my changes). Removing this file fixed my problem. I'm not sure why disabling DNS in /etc/mail/service.switch only affected MX lookups and still allowed A-record lookups - but I suspect it's due to hostname lookups using gethostbyname() which _does_ support DNS via /etc/host.conf. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message