LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-09-2009, 08:39 PM   #1
Hotchips
Member
 
Registered: Nov 2006
Location: Brisbane, Australia
Distribution: RHEL4
Posts: 33

Rep: Reputation: 15
Mail for root enabled - and filling up filesystem. How do I disable? RHEL


Hi peeps,

Running mutt, I accidentally created a mailbox for root....

/root/Mail does not exist. Create it? ([yes]/no):

I now have tons of mail going to root which I don't want or need. How do I simply reverse this trigger? That is, mail (mostly system messages like cron etc.) destined for root does not write and fill up my HDD.

Cheers,

RHEL 4.5 server.

Sendmail Version 8.13.8
mutt v1.4.2.2i (2006-07-14)
 
Old 12-09-2009, 09:49 PM   #2
Hotchips
Member
 
Registered: Nov 2006
Location: Brisbane, Australia
Distribution: RHEL4
Posts: 33

Original Poster
Rep: Reputation: 15
How is this done by redirecting root mail to /dev/null??? (if that is a possability?)

Last edited by Hotchips; 12-09-2009 at 11:20 PM.
 
Old 12-09-2009, 11:24 PM   #3
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Edit your /etc/crontab and blank the MAIL= variable. Change it from MAIL=root to MAIL=
 
Old 12-09-2009, 11:54 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I think it is best to forward mail sent to root to the account of the machines admin (presumably you).

Not sure about RHEL, but on many *nix systems this can be done by adding the following near the start of /etc/aliases

Code:
root: yourusername
After doing this you can read and delete this mail as you would any other.

Evo2.
 
Old 12-10-2009, 05:36 PM   #5
Hotchips
Member
 
Registered: Nov 2006
Location: Brisbane, Australia
Distribution: RHEL4
Posts: 33

Original Poster
Rep: Reputation: 15
Changed crontab and blanked mail=

I still get mail going to root.

I really want to get back to no mail actually getting written for root - how it was before I kicked root mail off with mutt.

For this particular box, I do not want/need root mail AT ALL. This may change, but I want do not have to worry about it for now.

When I opened mutt and it wrote all the cached emails to a newly created mailbox, obviously a setting or flag somewhere was activated/changed. I just want to change it back.

Ideally I want no root mail again until I again run mutt as root and again trigger a mailbox for root.

Cheers,
 
  


Reply



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
I want to disable logwatch on our RHEL servers to stop the logwatch mail svik Linux - Enterprise 10 08-27-2009 02:51 PM
how to avoid force check of root filesystem while booting RHEL frcrce08 Linux - Software 1 02-02-2009 10:40 AM
Root partition bizarrely filling up MoghNX01 Linux - Software 4 02-01-2007 02:57 PM
Root mailbox filling up timinator Fedora 4 01-19-2007 11:44 AM
Filling the root partition causes... Uncreative Slackware 1 05-08-2003 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration