On 30/10/06, Tony Wicks tony@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@server.domain to root@domain. It's something in sendmail.mc from memory.
From memory, Sendmail will default to user@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.