From owner-freebsd-questions Tue Jun 12 17:37:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 2330B37B401 for ; Tue, 12 Jun 2001 17:37:52 -0700 (PDT) (envelope-from ipthomas_77@yahoo.com) Received: from scraemondaemon.my.domain (1Cust27.tnt15.buffalo.ny.da.uu.net [63.57.105.27]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id RAA25921; Tue, 12 Jun 2001 17:37:48 -0700 (PDT) Received: (from ipt@localhost) by scraemondaemon.my.domain (8.9.3/8.9.3) id UAA02635; Tue, 12 Jun 2001 20:36:38 -0400 (EDT) (envelope-from ipt) From: "Ian P. Thomas" Message-Id: <200106130036.UAA02635@scraemondaemon.my.domain> Subject: Re: service.switch problem with sendmail To: orville.weyrich@pegs.com (Weyrich, Orville) Date: Tue, 12 Jun 2001 20:36:38 -0400 (EDT) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Weyrich, Orville" at Jun 12, 2001 02:24:12 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 According to the Sendmail docs, unless Sendmail is configured with a ServiceSwitchFile=/etc/mail/service.switch, it will default to looking in /etc/service.switch. This line should go in the .cf file. O ServiceSwitchFile=/etc/mail/service.switch This should do it. Ian In the last episode, Weyrich, Orville stated... > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message