From owner-freebsd-questions@FreeBSD.ORG Wed Aug 23 14:25: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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEB8716A4E8 for ; Wed, 23 Aug 2006 14:25:17 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F98D43D60 for ; Wed, 23 Aug 2006 14:25:16 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k7NEPG00007763; Wed, 23 Aug 2006 09:25:16 -0500 (CDT) (envelope-from dan) Date: Wed, 23 Aug 2006 09:25:16 -0500 From: Dan Nelson To: Lisa Casey Message-ID: <20060823142515.GA18781@dan.emsphone.com> References: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: e-mail from cron 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, 23 Aug 2006 14:25:17 -0000 In the last episode (Aug 23), Lisa Casey said: > This ought to be a fairly simple question, but I've googled and can't > really find the answer. > > I'ld like to have the reports from the system cron jobs (daily run > output, security run output, weekly run output and monthly run > output) sent to an e-mail address other than root, but I want all the > "postmaster" stuff (mailer-daemon emails, etc.) to continue going to > root (so I don't particularly want to just forward root's mail > somewhere using the aliases file). The periodic scripts generate their own emails, so setting MAILTO= in crontab (or manually piping the output to sendmail as you did) won't do anything. They default to the "root" email address, but you can change it by editing /etc/periodic.conf and adding lines like daily_output="othername@example.com" . Use /etc/defaults/periodic.conf as a references. This feature is documented in the periodic(8) manpage, but all the examples log to files, so it's easy to miss that fact that you can also use email addresses. -- Dan Nelson dnelson@allantgroup.com