Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2007 11:51:31 -0400
From:      Jerry McAllister <jerrymc@msu.edu>
To:        mats.lindberg@se.transport.bombardier.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: purging old mail
Message-ID:  <20070601155131.GD43330@gizmo.acns.msu.edu>
In-Reply-To: <OF78AB1FA2.BF39D79A-ONC12572ED.0029E012-C12572ED.002AA959@UK.BOMBARDIER.TRANSPORT.COM>
References:  <OF78AB1FA2.BF39D79A-ONC12572ED.0029E012-C12572ED.002AA959@UK.BOMBARDIER.TRANSPORT.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 01, 2007 at 09:45:49AM +0200, mats.lindberg@se.transport.bombardier.com 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?
> If so - how?

You could either create a routine to rotate the file - maybe syslogd 
could do it.  Or, set up an alias to forward the email messages
to another place.  These would be log and security messages.  You 
could forward them to /bin/null, but I think it is bad form to
automatically nuke security messages.

Note also that /var/log will grow over time.  The usual solution
is to use the syslog utility to manage those files so they roll
over at appropriate times and old ones eventually get removed
at some interval you set.

////jerry

> 
> Mats Lindberg
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070601155131.GD43330>