Re: [CentOS] root email question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxx to root@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@xxxxxxxxxx  | http://www.xdroop.com/dave/gpg.html
         $ gpg --recv-keys --keyserver subkeys.pgp.net 4C032504
         Mystery attachment?  http://wiki.xdroop.com/space/GPG

Attachment: pgpMpDjTtITsb.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux