From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 15:55:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E25F16A46B for ; Fri, 1 Jun 2007 15:55:57 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 05EB113C4CE for ; Fri, 1 Jun 2007 15:55:56 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l51FpWgq043642; Fri, 1 Jun 2007 11:51:32 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l51FpVsd043641; Fri, 1 Jun 2007 11:51:31 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 1 Jun 2007 11:51:31 -0400 From: Jerry McAllister To: mats.lindberg@se.transport.bombardier.com Message-ID: <20070601155131.GD43330@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: purging old mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 15:55:57 -0000 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 >