From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 12:11:23 2007 Return-Path: X-Original-To: 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 BCB6116A468 for ; Fri, 1 Jun 2007 12:11:23 +0000 (UTC) (envelope-from iaccounts@ibctech.ca) Received: from pearl.ibctech.ca (pearl.ibctech.ca [208.70.104.210]) by mx1.freebsd.org (Postfix) with ESMTP id 5F69113C469 for ; Fri, 1 Jun 2007 12:11:23 +0000 (UTC) (envelope-from iaccounts@ibctech.ca) Received: (qmail 12912 invoked by uid 1002); 1 Jun 2007 12:11:22 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(208.70.107.100):. Processed in 15.821399 secs); 01 Jun 2007 12:11:22 -0000 Received: from unknown (HELO ?192.168.1.210?) (steve@ibctech.ca@208.70.107.100) by pearl.ibctech.ca with (DHE-RSA-AES256-SHA encrypted) SMTP; 1 Jun 2007 12:11:06 -0000 Message-ID: <46600D05.2070709@ibctech.ca> Date: Fri, 01 Jun 2007 08:11:49 -0400 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: mats.lindberg@se.transport.bombardier.com References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 12:11:23 -0000 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? 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. Then run 'newaliases'. I've found that the postmaster account is much more prone to filling up a partition, so ensure that you redirect this address as well. Steve