From owner-freebsd-security Wed Jul 17 8:50:29 2002 Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 067AC37B400 for ; Wed, 17 Jul 2002 08:50:25 -0700 (PDT) Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 9A7ED43E31 for ; Wed, 17 Jul 2002 08:50:19 -0700 (PDT) (envelope-from roam@straylight.ringlet.net) Received: (qmail 98257 invoked by uid 85); 17 Jul 2002 15:57:18 -0000 Received: from sbnd.online.bg (HELO straylight.ringlet.net) (217.75.129.196) by south.nanolink.com with SMTP; 17 Jul 2002 15:57:16 -0000 Received: (qmail 4391 invoked by uid 1000); 17 Jul 2002 15:43:29 -0000 Date: Wed, 17 Jul 2002 18:43:29 +0300 From: Peter Pentchev To: Mario Pranjic Cc: security@FreeBSD.ORG Subject: Re: sendmail and /etc/hosts Message-ID: <20020717154329.GB408@straylight.oblivion.bg> Mail-Followup-To: Mario Pranjic , security@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Virus-Scanned: by Nik's Monitoring Daemon (AMaViS perl-11d ) Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 17, 2002 at 03:50:36PM +0200, Mario Pranjic wrote: > Hi! >=20 > I don't know if it's smart but I'd like to configure sendmail so that it > first checks /etc/hosts file and after that DNS entries. >=20 > Is that possible? A quick look through /etc/mail/freebsd.mc picked up a reference to /usr/share/sendmail/cf/README. A search for /etc/hosts in that file found the confHOSTS_FILE option, and immediately above it the confSERVICE_SWITCH_FILE option. Apparently, sendmail checks for the presence of the file pointed to by the confSERVICE_SWITCH_FILE option, or the /etc/mail/service.switch file by default; if that file is present, sendmail uses its settings just as all other programs use /etc/host.conf on -STABLE and /etc/nsswitch.conf on -CURRENT. Thus, it would seem that all you need to do is create an /etc/mail/service.switch file, and put the following two lines in it: file dns Disclaimer: I have not used Sendmail in the past couple of years, and I have never configured Sendmail; the information above is just what I found with a quick glimpse at the docs. Hope that helps :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am not the subject of this sentence. --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9NZCh7Ri2jRYZRVMRAmB9AJ9A62bf5wht9S2pMLJx9OI3qvuCLACgxSt2 R6w7dE835S7Mk+K9eJmNDvM= =9q2M -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message