From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 04:34:03 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9844F16A4CE for ; Fri, 11 Feb 2005 04:34:03 +0000 (GMT) Received: from smtp814.mail.sc5.yahoo.com (smtp814.mail.sc5.yahoo.com [66.163.170.84]) by mx1.FreeBSD.org (Postfix) with SMTP id B33C543D39 for ; Fri, 11 Feb 2005 04:34:02 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.173.27.163 with login) by smtp814.mail.sc5.yahoo.com with SMTP; 11 Feb 2005 04:34:00 -0000 From: Joshua Tinnin To: freebsd-questions@freebsd.org Date: Thu, 10 Feb 2005 20:34:00 -0800 User-Agent: KMail/1.7.2 References: <200502102024.42558.krinklyfig@spymac.com> In-Reply-To: <200502102024.42558.krinklyfig@spymac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502102034.00362.krinklyfig@spymac.com> cc: Kyle Jensen Subject: Re: Sending nightly cron job output without running sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 04:34:03 -0000 On Thursday 10 February 2005 08:24 pm, Joshua Tinnin wrote: > On Thursday 10 February 2005 08:04 pm, Kyle Jensen > wrote: > > Hi, > > > > I have deactivated sendmail via > > > > sendmail_enable="NONE" > > > > in my /etc/rc.conf. However, I > > would like to receive the output > > of my periodic cron jobs via email. > > How can I configure my system for > > this? > > sendmail_enable="NO" > > This disables sendmail's incoming mail service, but it will still > deliver system mail. > > I also use this: > > sendmail_flags="-q1m" > > This means sendmail will process the queue once a minute. > > Also, in my crontab, I have: > > MAILTO=username > > ... which will email the output of cron jobs to username. I only use > this in my local crontabs, but I guess you could put this in the main > one. Also, almost forgot, but if you want the output of periodic jobs (daily, weekly, monthly, security run) mailed to username instead of root, you can put this in your /etc/mail/aliases: root: username This will mail everything that would normally go to root to username, which includes those periodic jobs. If you want to change this on a more granular level, check /etc/defaults/periodic.conf - jt