1834161 Members
2432 Online
110064 Solutions
New Discussion

Email Setup

 
SOLVED
Go to solution
Young C. Jun
Occasional Contributor

Email Setup

I'd like to set an email account to forward email automatically to another email.

I mean, as soon as root get an any email, Can Root forward it to my email account?

Can I do that?

TIA
5 REPLIES 5
Brian M. Fisher
Honored Contributor

Re: Email Setup

In the $HOME directory of the user whose mail you would like forwarded, create a file named .forward
Include in it the address to forward mail to.

Brian
<*(((>< er
Perception IS Reality
Scott D. Allen
Regular Advisor
Solution

Re: Email Setup

You can setup aliases for root in /etc/aliases and run newaliases.

root: jsmith,mjones@ctinet.com

--Scott
"Sometimes the devil you know is better than the devil you don't know."
Alan Riggs
Honored Contributor

Re: Email Setup

Hit reply too soon. The advantage of this over /etc/aliases is that these files are owned by each individual user. Forwards can therefore be set up and modified without requiring root authority, and they take effect immediately, without requiring sendmail to re-read the aliases file.
Alan Riggs
Honored Contributor

Re: Email Setup

You can also edit the file in /ver/mail/

Making line 1 read "Forward to " does the trick.
David Rodman
Frequent Advisor

Re: Email Setup

Sure what you want is to create a file named ".forward" in the home
directory of the user. For root this would be the / directory.
The contents of the file should be the addresses of all of the users to get
the mail.
For instance "me@foobar.com root"

You may note that I put root on the forward list. This creates a copy to send to me
ans leaves a copy in the root mail box. Sendmail is smart enough not to
create a mailloop from this.

for more read up on sendmail.