From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 20:30: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 03E9316A421 for ; Fri, 1 Jun 2007 20:30:57 +0000 (UTC) (envelope-from freebsd@bsdserver.com.br) Received: from nitrobsd2.bsdserver.com.br (200-102-225-78.nhoce7001.t.brasiltelecom.net.br [200.102.225.78]) by mx1.freebsd.org (Postfix) with ESMTP id 8C8CE13C48A for ; Fri, 1 Jun 2007 20:30:53 +0000 (UTC) (envelope-from freebsd@bsdserver.com.br) Received: from webmail.bsdserver.com.br (localhost [127.0.0.1]) by nitrobsd2.bsdserver.com.br (8.13.8/8.13.8) with ESMTP id l51KIR1H061001 for ; Fri, 1 Jun 2007 17:18:28 -0300 (BRT) (envelope-from freebsd@bsdserver.com.br) From: "Rafael Aquino" To: freebsd-questions@freebsd.org Date: Fri, 1 Jun 2007 17:18:27 -0300 Message-Id: <20070601201828.M80161@bsdserver.com.br> In-Reply-To: <20070601155131.GD43330@gizmo.acns.msu.edu> References: <20070601155131.GD43330@gizmo.acns.msu.edu> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 10.59.32.210 (bsdserver) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (nitrobsd2.bsdserver.com.br [127.0.0.1]); Fri, 01 Jun 2007 17:18:28 -0300 (BRT) X-nitrobsd2.bsdserver.com.br-MailScanner-Information: Please contact the ISP for more information X-nitrobsd2.bsdserver.com.br-MailScanner: Found to be clean X-nitrobsd2.bsdserver.com.br-MailScanner-From: freebsd@bsdserver.com.br X-Spam-Status: No 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 20:30:57 -0000 Hi there, I use an application that you can find in /usr/ports/mail/archmbox. Using it with crontab, you can make it delete you x days old mails from any file in mbox format. I use it in my newsletter mbox, so I don´t have to worry about old mail. 0 2 * * * /usr/local/bin/archmbox -k -o 30 /home/bsdserver/mail/FreeBSD-Questions []´s -- Rafael Mentz Aquino BSDServer - FreeBSD - Servidores - Internet bsdserver@bsdserver.com.br 51 - 4063 - 6269 51 - 9725 - 4311 ---------- Original Message ----------- From: Jerry McAllister To: mats.lindberg@se.transport.bombardier.com Cc: freebsd-questions@freebsd.org Sent: Fri, 1 Jun 2007 11:51:31 -0400 Subject: Re: purging old mail > 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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- > Esta mensagem foi verificada pelo sistema de antivírus e > acredita-se estar livre de perigo. ------- End of Original Message ------- -- Esta mensagem foi verificada pelo sistema de antivírus e acredita-se estar livre de perigo.