Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 4th, 2011, 12:39 AM
vbsaltydog vbsaltydog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 270 vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 20 m 43 sec
Reputation Power: 19
Root mail huge

In doing some disk cleanup on CentOS, I just found that my /root/Maildir/new directory was 25G.

Does anyone have advise on how to stop this from re-occurring?

Reply With Quote
  #2  
Old February 4th, 2011, 09:09 AM
SimonJM SimonJM is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2006
Posts: 2,108 SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 4 h 16 m 23 sec
Reputation Power: 1485
Yes, housekeeping!

The user running cron jobs, etc., will get mailed when there is output from the job that would normally go to stdout or stderr. You may well have one or more cron jobs that regularly produces output which will send mails - backups are a prime example.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc

Reply With Quote
  #3  
Old February 4th, 2011, 02:01 PM
vbsaltydog vbsaltydog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 270 vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level)vbsaltydog User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 20 m 43 sec
Reputation Power: 19
Quote:
Originally Posted by SimonJM
Yes, housekeeping!

The user running cron jobs, etc., will get mailed when there is output from the job that would normally go to stdout or stderr. You may well have one or more cron jobs that regularly produces output which will send mails - backups are a prime example.


Whats the best way to defeat this? Send the cron output to /dev/null ?

Reply With Quote
  #4  
Old February 4th, 2011, 04:29 PM
SimonJM SimonJM is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2006
Posts: 2,108 SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 4 h 16 m 23 sec
Reputation Power: 1485
Not immediately!
What you do is have a trawl through the mails, identify the 'regular offenders' and why they are doing it. If it's 'just' log information of no use then redirect that output to either a fixed file (for each task) so they can be reviewed on a daily basis, or to /dev/null.
If the information is needed, then redirect the output to a file that will either be appened to or contain the run date/time, so that can be reviewed.
Log files will, of course, tale up space so if you redirect all the putput to log files you'll just be moving the problem from one file system/directory to another.
That's why you go through the mails (probaly only really need the last months) to get a decent representation of what is being output and why and then deal with that. Then you keep an eye on the mail root files and perform the above steps for any more output previously missed.
Rinse and repeat. Wax on, wax off ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Root mail huge

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap