On 29 Jul 2011, at 8:26, Paul N wrote: > On Fri, Jul 29, 2011 at 7:58 AM, Wade Preston Shearer > <[email protected]> wrote: >> In /etc/aliases, under "person who should receive root's mail," I have an >> external email address. Mail >> sent to root is successfully delivered to this address. When scripts that my >> cron jobs run fail, mail error >> reports are emailed to root. These messages to root are put in root's inbox >> on the server however instead >> of being send along to the "person who should receive root's mail." Any idea >> why? >> >> > > Is MAILTO set in the crontab to anything funny?
I hadn't set MAILTO because I want it to go to root (which is the default). The issue is simply the mapping in the aliases file. Just setting the MAILTO will solve it. I'll do that. I'd still be interested in what the difference is between mail being sent to root from the command line mail client and mail being sent to root via crontab (why one honors the mapping in /etc/aliases and the other does not). /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
