1832086 Members
3193 Online
110037 Solutions
New Discussion

Re: Root mail forwarding

 
Ugan
Occasional Contributor

Root mail forwarding

I have a D box running 11.00. I want to redirect all root mail to an MS Exchange Server mailbox. The exchange server is on a domain and the D box is in a workgroup.

Any ideas?
6 REPLIES 6
Trond Haugen
Honored Contributor

Re: Root mail forwarding

Sure. There are several ways.
1. Put a '.forward' file in roots $HOME with the contents MSaddress'.
2. Do it in the /etc/mail/alias
3. Edit /var/mail/root and put 'forward to MSaddress'.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Frank Slootweg
Honored Contributor

Re: Root mail forwarding

Adding to Trond's response:

Because UNIX systems confirm to (formal, de jure) standards, they use *Internet* style e-mail addresses, not proprietary *MS-Exchange* style addresses.

So if I would like to do this, my .forward would read:

frank_slootweg@hp.com

instead of:

SLOOTWEG,FRANK (HP-Netherlands,ex1)

Sean OB_1
Honored Contributor

Re: Root mail forwarding

Add a .forward file to roots home directory.

Put in the address you want to forward to:

newaddress@msexchangeserver.com


Or edit the /etc/mail/alias file and put in:


root: newaddress@msexchangeserver.com

then run /usr/sbin/newaliases

Sometimes the alias file is located in /etc/alias so check there if it's not in /etc/mail

Ugan
Occasional Contributor

Re: Root mail forwarding

Where do I put the definition of the MS Exchange Server?
Paula J Frazer-Campbell
Honored Contributor

Re: Root mail forwarding

Hi

/etc/mail/sendmail.cf


Paula
If you can spell SysAdmin then you is one - anon
Sean OB_1
Honored Contributor

Re: Root mail forwarding

Ugan,

Just a reminder to give points out to those who answered your questions. It only takes a moment, and helps make the forums more useful to everyone.

Sean