1832953 Members
2588 Online
110048 Solutions
New Discussion

forward root e-mail

 
SOLVED
Go to solution
Vogra
Regular Advisor

forward root e-mail

Hi All!
I'm using the .forward file to send root e-mail to mail e-mail account. I need to send a copy of e-mail root, but with this solution all e-mail are forwarded. It's possible to have a copy of e-mail on root box?
Thanx.
We are spirits in the material world
11 REPLIES 11
Michael Elleby III_1
Trusted Contributor
Solution

Re: forward root e-mail

Claudio-

If you are trying to have email that is sent to root directed to another email address (if you have your box configured to send mail to users on your intranet), just modify the aliases file in the /etc/mail directory.

Go to the "Local Aliases" section and make an entry that should look like this:


root : you@yourcompany.com

Once you have made this entry, stop and restart sendmail.

Any mail directed to root will be forwarded to the email address you indicate in the aliases file.

Mike-

Knowledge Is Power
Justo Exposito
Esteemed Contributor

Re: forward root e-mail

Hi Claudio,

You can do it by editing the aliases file in the /etc/mail and puting this:

emailrootaddress(full qualified): youremailaddress(full qualified), root

then you must execute the newaliases command.

Regards,

Justo.
Help is a Beatiful word
Sanjay_6
Honored Contributor

Re: forward root e-mail

Hi Claudio,

Try this in your .forward file,

your_new_name@domain, \root

Hope this helps.

Regds

Arockia Jegan
Trusted Contributor

Re: forward root e-mail

create a alias in /etc/aliases file.

eg:

root:root,user@company.com

It will send you mails and keep a copy for root.
S.K. Chan
Honored Contributor

Re: forward root e-mail

Setting up the mail aliases is the way to go..
for example (/etc/mail/aliases)

root: root,admins
admins: skchan@abc.com,jimt@abc.com

Run "newaliases" for the change to take affect.
Vogra
Regular Advisor

Re: forward root e-mail

Hi All!
the solutions presented, I think, redirect all contents of root e-mail to another e-mail. The Sanjay solution reselved in part, that the root received aa e-mail, but with no contents.
I need to have two copies of a message: one in root box and another in myemail@myserver.com.

idea?
thanx?
We are spirits in the material world
Justo Exposito
Esteemed Contributor

Re: forward root e-mail

Hi Claudio,

If you try my solution as I do it, you obtain two copies of the same message, one in the root mailbox and another in your mailbox.

Regards,

Justo.
Help is a Beatiful word
Vogra
Regular Advisor

Re: forward root e-mail

Hi All,
I think I have another problem. When i execute elm, the following header appear:

============================================
Executing metamail...
From: Claudio Lima Filho
To: "'root@vsurjux2.vsul'"
Subject: teste /etc/mail/alisases
Date: Wed, 22 May 2002 12:44:03 -0300
============================================

But the message have no contents...
It's occur when I send a message from exchange (Outlook 98)
Any adeia?
We are spirits in the material world
Ameet_HP
Frequent Advisor

Re: forward root e-mail

Claudia,

No need to update aliases

Just add following entries in .forward.

yourid@abc.com
\root


Ameet
Vogra
Regular Advisor

Re: forward root e-mail

Hi All!

both solution are ok: editing /etc/aliases or /.forward;
Thanx to all.
By.
We are spirits in the material world
Sanjay_6
Honored Contributor

Re: forward root e-mail

Hi Claudio,

Just remeber any time you modify the aliases, just restart the sendmail daemon once again for the new aliases to take effect,

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start


Hope this helps.

regds