[CentOS] root email question

Mon Oct 30 23:13:05 UTC 2006
Will McDonald <wmcdonald at gmail.com>

On 30/10/06, Tony Wicks <tony at prophecy.net.nz> wrote:
> Hi all, Ive done this before but the solution alludes me now. Can
> someone please remind me how to change the default Redhat behavior of
> root email being sent from root at server.domain to root at domain. It's
> something in sendmail.mc from memory.

>From memory, Sendmail will default to user at host if there's no fully
qualified domain name for either localhost or the system's 'base' IP
address in /etc/hosts.

There's probably a more correct Sendmail approach too. Checking
/etc/mail/sendmail.mc

LOCAL_DOMAIN(`localhost.localdomain')dnl

Looks a likely candidate.

Will.