From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 16:13:18 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 357341065677 for ; Thu, 5 Aug 2010 16:13:18 +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 2155B8FC14 for ; Thu, 5 Aug 2010 16:13:17 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id F41F64A2E70B for ; Thu, 5 Aug 2010 09:12:14 -0700 (PDT) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Thu, 05 Aug 2010 09:10:53 -0700 Date: Thu, 5 Aug 2010 09:10:53 -0700 From: Jason To: freebsd-questions@freebsd.org Message-ID: <20100805161048.GA42711@eggman.experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline 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: 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:13:18 -0000 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