Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2004 17:04:05 +0400
From:      dima <_pppp@mail.ru>
To:        spidey@act.co.za
Cc:        FreeBSD-isp@freebsd.org
Subject:   Re: Check for large mailboxes in Exim
Message-ID:  <E1CM4W5-0002zD-00._pppp-mail-ru@f32.mail.ru>
In-Reply-To: <006001c4ba8f$b31bcdd0$0b01000a@SPIDEY>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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/<domain>/<box>
So I type:
# du -k -d 1 /var/spool/vmail/*
& get the strings like:
33900 /var/spool/vmail/<domain_1>
210   /var/spool/vmail/<domain_1>/<box_1>
2082  /var/spool/vmail/<domain_1>/<box_2>
....
The sizes are in kilobytes by default.
You can easily parse the stuff with text utils for your application.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1CM4W5-0002zD-00._pppp-mail-ru>