From owner-freebsd-questions@FreeBSD.ORG Wed Aug 23 14:05:46 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 2FAB016A4E1 for ; Wed, 23 Aug 2006 14:05:46 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [208.44.26.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4E5B43D55 for ; Wed, 23 Aug 2006 14:05:45 +0000 (GMT) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [208.44.26.213]) (authenticated bits=0) by mail.jellico.com (8.12.6/8.12.6) with ESMTP id k7NEAlQL016475 for ; Wed, 23 Aug 2006 10:10:47 -0400 Message-ID: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> From: "Lisa Casey" To: Date: Wed, 23 Aug 2006 10:05:14 -0400 Organization: Netlink 2000, Inc. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1 Subject: 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:05:46 -0000 Hi, 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). In /etc/crontab, I changed this: # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly # to this: # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 2>&1 | sendmail service@jellico.com 15 4 * * 6 root periodic weekly 2>&1 | sendmail service@jellico.com 30 5 1 * * root periodic monthly 2>&1 | sendmail service@jellico.com # but all I get is a blank email sent to service@jellico.com What's the best way to accomplish this? Thanks, Lisa Casey