LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-28-2004, 06:41 PM   #1
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Rep: Reputation: 31
forward root email


When I do an ls on /var/spool/mail the root user has a file called "root" which seems to have mail in it for the root user. How can I set this mail to forward so that the mail file does not keep growing?
 
Old 10-28-2004, 08:30 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
What MTA are you using? If its sendmail which is default, try creating an alias for roots mail to forward to another user, etc.
 
Old 10-29-2004, 08:06 AM   #3
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
I believe it is sendmail.

how do I create an alias using the command line?
 
Old 10-29-2004, 08:14 AM   #4
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
okay. I figured it out.

/etc/aliases

then i ran
newaliases
 
Old 10-29-2004, 08:15 AM   #5
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
thanks for the help
 
Old 10-29-2004, 08:16 AM   #6
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
I have another question.

what about the 2MB of emails that have already been sent to root?
How can I get those either forwarded or cleared?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up FedCore3 4 WWW/Email Forward for Mass Users Thom_Redhat Linux - Newbie 2 07-20-2005 02:47 AM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM
syslog forward to email config file? lildrummerboy Linux - Newbie 8 07-29-2004 07:25 PM
Ximian Evolution - forward email filter khermans Linux - Software 1 06-21-2004 01:01 PM
Re: Forwarding email (.forward file) andy_sco123 Linux - General 3 05-24-2002 12:34 PM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration