DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Lightbulb Managing system mail

I'm posting to solicit your ideas and strategies for managing system mail.

On my FreeBSD servers, I get the usual mail from the periodic scripts, plus mail from a few processes that I run.

On my RHEL servers, I get the usual mail from logwatch and a few other processes.

As the number of servers grows, logging in to each every Monday morning to read through all the system mail has become a bit of a chore. (Maybe a necessary chore, but I'm wondering if there isn't a more clever approach.)

Possibilities I've entertained:
  • Forwarding all system mail to my email account. (That might get out of control quickly.)
  • Paring back the amount of system mail on each server significantly -- i.e. if I don't absolutely need the report I either cancel it or direct it to /dev/null. The only thing I do not like about this is it requires custom work that I'll have to deploy to each server.

Anyone care to share their ideas / strategies on this?
__________________
Kill your t.v.
Reply With Quote
  #2   (View Single Post)  
Old 23rd September 2008
deemon's Avatar
deemon deemon is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Estonia
Posts: 50
Default

I forward system mail from all my servers to single address and let the Thunderbird to sort them out.
All regular crontab outputs go to subfolder and I will look over them once a day to check for any irregularities but leave daily/security run outputs to inbox. Nothing is sent to /dev/null.
__________________
Fhtagn nagh Yog-Sothoth
Reply With Quote
  #3   (View Single Post)  
Old 23rd September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

All mail to root on every machine gets forwarded to my mailbox, where procmail pre-sorts and prunes them into sub-folders. Crontab mail is now limited by using " > /dev/null " -- which means I only get errors emailed to me, nothing more. The nightly jobs do get mailed to me, because I always want to see those.
Reply With Quote
  #4   (View Single Post)  
Old 23rd September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

On FreeBSD, I let the system reports go into a rotated logfile instead of mail. You can add to /etc/periodic.conf:
Code:
# Daily options
daily_output="/var/log/daily.log"

# Weekly options
weekly_output="/var/log/weekly.log"

# Monthly options
monthly_output="/var/log/monthly.log"
Reply With Quote
  #5   (View Single Post)  
Old 23rd September 2008
hamba hamba is offline
Fdisk Soldier
 
Join Date: Apr 2008
Posts: 71
Default

I've got a separate email account for all the server emails and just forward all the root email to this account, then maildrop sorts the emails for me the way I want them.
Reply With Quote
  #6   (View Single Post)  
Old 23rd September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Thanks everyone. This has been driving me bonkers. I'll put together a strategy based on these suggestions.
__________________
Kill your t.v.
Reply With Quote
Reply

Tags
system mail

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail scenario mtx General software and network 1 12th December 2008 06:37 PM
Can't get mail system to work properly! Sunsawe FreeBSD Ports and Packages 2 30th June 2008 07:32 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM
Managing IP Addresses bigb89 FreeBSD General 8 28th May 2008 12:09 AM


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick