Will McDonald wrote:
On 30/10/06, Tony Wicks <tony@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxx 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.
Or if you're running postfix...
in /etc/postfix/main.cf uncomment this line:
#myorigin = $myhostname
so it looks like this:
myorigin = $mydomain
Then restart postfix. That will affect all mail from the machine so
instead of getting mail from root@xxxxxxxxxxxxxxxxx, it will be
root@xxxxxxxxxxxxx It's been 7 or 8 years since I've fondled a sendmail
config so I don't recall off the top of my head how to translate that
into an m4-ism.
Hope that helps.
Cheers,
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos