Date: Wed, 23 Aug 2006 09:25:16 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Lisa Casey <lisa@jellico.com> Cc: freebsd-questions@freebsd.org Subject: Re: e-mail from cron Message-ID: <20060823142515.GA18781@dan.emsphone.com> In-Reply-To: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> References: <012e01c6c6bd$29966ac0$d51a2cd0@lisac>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060823142515.GA18781>