From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 04:06:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07BA316A407 for ; Wed, 6 Dec 2006 04:06:17 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9037A43CA2 for ; Wed, 6 Dec 2006 04:05:33 +0000 (GMT) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by elasmtp-spurfowl.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1Gro2x-0008JZ-PJ for freebsd-questions@freebsd.org; Tue, 05 Dec 2006 23:06:15 -0500 Received: from joeandlane.com (localhost.localnet.local [127.0.0.1]) by joeandlane.com (8.13.8/8.13.1) with ESMTP id kB648tEF086168 for ; Tue, 5 Dec 2006 22:08:55 -0600 (CST) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.8/8.13.1/Submit) id kB648sUw086159 for freebsd-questions@freebsd.org; Tue, 5 Dec 2006 22:08:54 -0600 (CST) (envelope-from lane@joeandlane.com) X-Authentication-Warning: joeandlane.com: lholcombe set sender to lane@joeandlane.com using -f From: Lane To: freebsd-questions@freebsd.org Date: Tue, 5 Dec 2006 22:08:54 -0600 User-Agent: KMail/1.9.4 References: <20061206034909.27125.qmail@web37214.mail.mud.yahoo.com> In-Reply-To: <20061206034909.27125.qmail@web37214.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612052208.54833.lane@joeandlane.com> X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec7906f363ce39f8d7ceb284c307a95dc1f9350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Subject: Re: how do I see security logs without turning on sendmail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2006 04:06:17 -0000 On Tuesday 05 December 2006 21:49, Wasp King wrote: > is there a way that one can specify a log place to see > daily logs like you receive from root@localhost, when > sendmail is turned on? > > there must be a way to enable only local mail > delivery...but I am not sure how.. > > would like to shut down sendmail but want to see > security logs. > > thanks. > > Zach > using FreeBSD 4.2 and sendmail 8.x (maybe). > > > > ___________________________________________________________________________ IIRC, sendmail has three controlling values in /etc/rc.conf: sendmail_enable="YES" sendmail_enable="NO" and sendmail_enable="NONE" The third value, "NONE," causes the boot process to ignore any attempt to start sendmail. The second value, "NO," causes the boot process to start sendmail for "local delivery, only" (i.e. do NOT accept inbound connections from external hosts). The first value, "YES," causes the boot process to start sendmail for outgoing and incoming SMTP connections. There are many "tweaks" that you can use in /etc/rc.conf - (refer to /etc/defaults/rc.conf) - that will allow various flavors of sendmail usage. See also, /etc/rc.sendmail. In your case sendmail_enable="NO" should allow the local system to send "periodic" information to root@localhost, or whatever alias you use in /etc/mail/aliases, while disallowing external hosts from sending email by way of the local host. Note that this requires that you pay heed to /etc/mail/Makefile and associated README documentation in /usr/src/contrib/sendmail and below. Best of luck! lane