-
Notifications
You must be signed in to change notification settings - Fork 101
Mailbox Sizes
Barry O'Donovan edited this page Feb 14, 2014
·
1 revision
ViMbAdmin V3 has a new feature - calculation and display of mailbox (and home directory) sizes.
The current implementation is a little clunky in that it performs a du
shell command per mailbox via a scheduled cron job. A future version could instead check the Dovecot quota limits to read this quickly and efficiently.
To enable this, run:
$INSTALL_PATH/bin/vimbtool.php -a mailbox.cli-get-sizes
where $INSTALL_PATH
is the path to where you installed ViMbAdmin.
It's best scheduled as a nightly off-peak cron job (replacing $INSTALL_PATH
as appropriate):
10 3 * * * root $INSTALL_PATH/bin/vimbtool.php -a mailbox.cli-get-sizes
In your application.ini
, ensure you set:
defaults.list_size.disabled = false
;; Maildir size units. By default: KB. One of B, KB, MB or GB.
defaults.list_size.multiplier = 'GB'
You can add the verbose operator -v
or the debug operator -d
to the above command for informational and debugging messages.