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. Thanks
On 10/30/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.edit /etc/aliases, then run newaliases -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
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 fullyqualified 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.
On Tue, Oct 31, 2006 at 11:45:29AM +1300, Tony Wicks 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.If you are running sendmail, the pieces you want are: MASQUERADE_AS(`xdroop.com')dnl dnl EXPOSED_USER(`root')dnl Prefixing a line with 'dnl' effectively comments it out. You might also be interested in: FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl ..depending on what you are doing. Then restart sendmail. The init script will run make in /etc/mail before launching. (oh, and change 'xdroop.com' to your domain of course. :) -- /\oo/\ / /()\ \ David Mackintosh | Public Key: dave at xdroop.com | http://www.xdroop.com/dave/gpg.html $ gpg --recv-keys --keyserver subkeys.pgp.net 4C032504 Mystery attachment? http://wiki.xdroop.com/space/GPG -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20061030/38856d47/attachment-0002.sig>