There is an "exposed user" setting in sendmail.cf whose behaviour can be adjusted by recompiling with sendmail.mc The relevant settings are here in sendmail.cf # class E: names that should be exposed as from this host, even if we masquerade C{E}root So if you set the machine to masquerade a domain as "domain.com" for example, take out the class C{E}root You may find this a useful link (note the site is not associated with me) http://www.grok.org.uk/docs/smroot.html P. Will McDonald wrote: > 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. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > -- This message has been scanned for viruses and dangerous content by the Enhancion system Scanner and is believed to be clean. http://www.enhancion.net