Jonathan McKeown <[EMAIL PROTECTED]> wrote on 2007-06-01 14:31:48: > On Friday 01 June 2007 14:11, Steve Bertrand wrote: > > [EMAIL PROTECTED] wrote: > > > Hi all, > > > I'm setting up a FreeBSD 5.4 system that need to run unattended for a > > > year or more. > > > I've noticed that the /var/mail/root file grows a bit over time. > > > > > > Do I need to configure the system in some way to prevent this file from > > > growing indefinately, filling up the /var partition? > > > > Are you actually interested in reading root mail? > > > > Are you running sendmail? > > > > If so, in the /etc/mail/aliases file, change the root alias to an email > > address that someone actually POP's. > > > > If you don't want to read the email at all, change the root alias to > > point to /dev/null. > > What I've been caught by a couple of times is the periodic(8) routines, which > quickly fill roots mailbox with daily, weekly and monthly status reports. > > If you're not going to forward these to a real user but still want to keep > (some of) them available, put > > daily_output="/var/log/daily.log" > weekly_output="/var/log/weekly.log" > monthly_output="/var/log/monthly.log" > > in /etc/periodic.conf. The relevant reports will be logged into the > respective > files, and newsyslog already knows to rotate these if they exist, so they > won't grow endlessly (by default, /etc/newsyslog.conf keeps a week of dailys, > 5 weeks of weeklys and a year of monthlys). > > Jonathan
Thanks guys This was really usefuk _______________________________________________________________________________________________________________ This e-mail communication (and any attachment/s) may contain confidential or privileged information and is intended only for the individual(s) or entity named above and to others who have been specifically authorized to receive it. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others. Please notify the sender that you have received this e-mail in error by reply e-mail, and delete the e-mail subsequently. Please note that in order to protect the security of our information systems an AntiSPAM solution is in use and will browse through incoming emails. Thank you. _________________________________________________________________________________________________________________ Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut contenir des renseignements confidentiels ou protégés et est destiné à l?usage exclusif du destinataire ci-dessus. Toute autre personne est par les présentes avisée qu?il est strictement interdit de le diffuser, le distribuer ou le reproduire. Si vous l?avez reçu par inadvertance, veuillez nous en aviser et détruire ce message. Veuillez prendre note qu'une solution antipollupostage (AntiSPAM) est utilisée afin d'assurer la sécurité de nos systems d'information et qu'elle furètera les courriels entrant. Merci. _________________________________________________________________________________________________________________ _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"