From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 17:16:34 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 647BA16A47C for ; Fri, 8 Dec 2006 17:16:34 +0000 (UTC) (envelope-from tuaregmex@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1DB443CA6 for ; Fri, 8 Dec 2006 17:15:33 +0000 (GMT) (envelope-from tuaregmex@gmail.com) Received: by wr-out-0506.google.com with SMTP id i28so541281wra for ; Fri, 08 Dec 2006 09:16:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XPAqFBVSo327PnRgqjqe98lgrNKbxiGswOAezLGtAZrwWKXTMAiiU+Jf6M9ZhRyVKRO1jrikfr14Zd/jSJjXUh/y7pIcF5cy8jA/jdq8pnv5Mg2TKMmQiBz0oYyeGt5fgqKR326rpwIlzXFsw/kMDa1eGokLJgqtD7S6HGtcCYk= Received: by 10.78.146.11 with SMTP id t11mr1788035hud.1165598190807; Fri, 08 Dec 2006 09:16:30 -0800 (PST) Received: by 10.78.166.20 with HTTP; Fri, 8 Dec 2006 09:16:30 -0800 (PST) Message-ID: <7a4a15bd0612080916g1e25d1eer63a40608b82779ec@mail.gmail.com> Date: Fri, 8 Dec 2006 11:16:30 -0600 From: Tuareg To: freebsd-questions@freebsd.org In-Reply-To: <200612052208.54833.lane@joeandlane.com> MIME-Version: 1.0 References: <20061206034909.27125.qmail@web37214.mail.mud.yahoo.com> <200612052208.54833.lane@joeandlane.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Fri, 08 Dec 2006 17:16:34 -0000 On 12/5/06, Lane wrote: > > 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 > Hi... Where I'm working, have many servers with FreeBSD 4.x and 5.x, this servers are enable to send mail but the daemon of sendmail is not launched. Now, we have installed FreeBSD 6.1 STABLE, but can't reply this schema. Which file needs to be modified in /etc/mail to allow the server to send emails to our real mailserver so we can receive the results of some scripts without launching the daemon of sendmail? We have tried using sendmail="NO", in rc.conf, but we only get this messages: user@mydomain.com... Connecting to [127.0.0.1] via relay... user@mydomain.com... Deferred: Permission denied Thank you for your help in advance.