From owner-freebsd-isp@FreeBSD.ORG Mon Oct 25 13:04:07 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5789616A4CE for ; Mon, 25 Oct 2004 13:04:07 +0000 (GMT) Received: from f32.mail.ru (f32.mail.ru [194.67.57.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id E47E343D3F for ; Mon, 25 Oct 2004 13:04:06 +0000 (GMT) (envelope-from _pppp@mail.ru) Received: from mail by f32.mail.ru with local id 1CM4W5-0002zD-00; Mon, 25 Oct 2004 17:04:05 +0400 Received: from [81.200.13.122] by win.mail.ru with HTTP; Mon, 25 Oct 2004 17:04:05 +0400 From: dima <_pppp@mail.ru> To: spidey@act.co.za Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [81.200.13.122] Date: Mon, 25 Oct 2004 17:04:05 +0400 In-Reply-To: <006001c4ba8f$b31bcdd0$0b01000a@SPIDEY> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: cc: FreeBSD-isp@freebsd.org Subject: Re: Check for large mailboxes in Exim X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dima <_pppp@mail.ru> List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 13:04:07 -0000 > On my mail server how can I check the sizes of the mail boxes or the > mailboxes larger than 1 mb You should mention the mailbox format used. Let's consider you use the same format as I do (Mailbox). My boxes are under the /var/spool/vmail/ directory. The directory structure is like the following: /var/spool/vmail// So I type: # du -k -d 1 /var/spool/vmail/* & get the strings like: 33900 /var/spool/vmail/ 210 /var/spool/vmail// 2082 /var/spool/vmail// .... The sizes are in kilobytes by default. You can easily parse the stuff with text utils for your application.