From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 16:21:07 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A322106564A for ; Thu, 5 Aug 2010 16:21:07 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id E82A08FC17 for ; Thu, 5 Aug 2010 16:21:06 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id 4157B4A2E3B4 for ; Thu, 5 Aug 2010 09:20:03 -0700 (PDT) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Thu, 05 Aug 2010 09:18:42 -0700 Date: Thu, 5 Aug 2010 09:18:42 -0700 From: Jason Cc: freebsd-questions@freebsd.org Message-ID: <20100805161838.GB42711@eggman.experts-exchange.com> References: <20100805161048.GA42711@eggman.experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20100805161048.GA42711@eggman.experts-exchange.com> X-Operating-System: FreeBSD 7.3-RELEASE-p1 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: periodic issue, email 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: Thu, 05 Aug 2010 16:21:07 -0000 On Thu, Aug 05, 2010 at 09:10:53AM -0700, Jason thus spake: >Hello, > >I am trying to get periodic to not send mail to root, and only log, but have >been unsuccessful thus far. > >I have not changed /etc/defaults/periodic.conf, but have added my variables >to /etc/periodic.conf as per the man page. > >=== >To log periodic output instead of receiving it as email, add the >following lines to /etc/periodic.conf: > > daily_output=/var/log/daily.log > weekly_output=/var/log/weekly.log > monthly_output=/var/log/monthly.log >=== > >Here are the contents of my /etc/periodic.conf file (0644, root, wheel): > >daily_output="/var/log/daily.log" >weekly_output="/var/log/weekly.log" >monthly_output="//var/log/monthly.log" > >When this didn't work and sent root email, as well, I started working with >the MAILTO value in /etc/crontab. > >I had MAILTO in /etc/crontab set to root, my own email address and an empty >value in trying to diagnose but all seem to yield no different result. > >They log to the log files noted above, but still send email to root. I am >running ssmtp on my machine, which doesn't use the concept of 'aliases'. > >The other reason I am trying to get this to only log is I would like to have >this work for all of our servers, and monitor the logs, as opposed to get >tons of email. > >Thanks, >Jason My apologies on formatting... Not sure what happened. -jgh