################
#!/bin/bash
all_account=`zmprov gaa`;
for account in ${all_account}
do
mb_size=`zmmailbox -z -m ${account} gms`;
echo "Mailbox size of ${account} = ${mb_size}";
done
##############
misal nya : checkmailsize.sh
# chmod 755
untuk menjalankan nya
# ./checkmailsize.sh