From owner-freebsd-questions Tue Jun 12 14:24:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub2.anasazi.com (mailhub2.pegs.com [138.113.16.9]) by hub.freebsd.org (Postfix) with ESMTP id 047DE37B411 for ; Tue, 12 Jun 2001 14:24:19 -0700 (PDT) (envelope-from orville.weyrich@pegs.com) Received: (from root@localhost) by mailhub2.anasazi.com (8.11.3/8.11.0) id f5CLOHl40680 for ; Tue, 12 Jun 2001 14:24:17 -0700 (MST) Received: from phwexh03.anasazi.com (phwexh03.rez.com [138.113.16.12]) by mailhub2.anasazi.com (8.11.3/8.11.0) with ESMTP id f5CLODf40536; Tue, 12 Jun 2001 14:24:13 -0700 (MST) Received: by phwexh03.rez.com with Internet Mail Service (5.5.2650.21) id ; Tue, 12 Jun 2001 14:24:13 -0700 Message-ID: <9205097C1881D411B2FC00902727033401074B4B@pheexh01.pegs.com> From: "Weyrich, Orville" To: "'freebsd-questions@FreeBSD.ORG'" Cc: "'orville@weyrich.com'" Subject: service.switch problem with sendmail Date: Tue, 12 Jun 2001 14:24:12 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG System: FreeBSD_4.3-RELEASE NOT connected to the net, no local DNS (but I will add that later after I get this part working). If /etc/mail/service.switch contains the lne "hosts files" then I can send e-mail to systems on my LAN using entries in the /etc/hosts file. So far so good. But if /etc/mail/service.switch contains the line "hosts files dns" then I EXPECT THAT THINGS WILL WORK THE SAME WAY, because files is listed before dns, and the host file is able to resolve the ip address of the destination system on my LAN. But no joy -- the mail gets queued on the local box -- deferred because of DNS. How do I get sendmail to ONLY consult /etc/hosts for systems found in /etc/hosts, and to use DNS for other systems? I don't want to break the anti-spam features when I connect to the Internet, but my LAN systems are trusted. This system is intended to be my bastion host. Help please? orville@weyrich.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message