[CentOS] Changing Root E-Mail address

Thu Dec 23 02:17:24 UTC 2010
Nico Kadel-Garcia <nkadel at gmail.com>

On Wed, Dec 22, 2010 at 5:53 PM, John R Pierce <pierce at hogranch.com> wrote:
> On 12/22/10 2:24 PM, Nico Kadel-Garcia wrote:
>> If you're running sendmail, put an alias in /root/.forward. That gets
>> *all* root email forwarded to the appropriate account, not just cron
>> jobs. It also doesn't require editing of system files such as
>> /etc/aliases.
>
> that's a borderline bizarre rationale.    /etc/aliases is specifically
> intended for this, even has a sample line in it to forward root's mail.

Not at all. If you have a sitewide deployment kickstart system, you do
*NOT* want to push dynamic edits to /etc/aliases if you don't have to.
And different SMTP servers have distinct handling, or even locations,
of the aliases file. Is it /etc/aliases? /etc/mail/aliases?
/usr/local/etc/aliases? Do you want to manipulate it on a host by host
basis and keep consistent /etc/aliases deployed across all hosts? You
pick the situation!!!!

I run into a *LOT* of bizarre situations.