Hi,
you have to run the following bulk provisioning script with name 'prov' in /tmp folder:
Code:
#!/bin/bash
################################################################################
# $Id: deprovision,v 1.2 2007/02/18 20:41:43 dlbewley Exp $
#-------------------------------------------------------------------------------
# Description:
# Script to modify all Zimbra accounts quota.
#
#
#
# Usage:
# su - zimbra
# ./deprovision > deprovision.zmp
# zmprov < deprovision.zmp
#
################################################################################
# this will be passed to grep -vE which acts as an exclude list
KEEP_ACCOUNTS='^(admin@|ham\.|spam\.|wiki@)'
# files to hold account lists
ACCOUNTS='accounts.txt'
TMPA=`mktemp "$ACCOUNTS.XXXXXX"`
# get accounts lists
zmprov -l gaa > "$TMPA"
if [ -n "$KEEP_ACCOUNTS" ]; then
grep -vE "$KEEP_ACCOUNTS" "$TMPA" > "$ACCOUNTS"
rm "$TMPA"
else
mv "$TMPA" "$ACCOUNTS"
fi
# modify accounts quota
cat "$ACCOUNTS" | while read account; do
echo "ma $account zimbraMailQuota 262144000"
done it generates a file with the list of all the account with the association of the quota value to modify.
After you have created the file prov, with 777 permissions, you have to run the following:
Code:
su zimbra
cd /tmp
./prov > /tmp/prov.zmp
zmprov < /tmp/prov.zmp
and this mechanism changes automatically the quota for all the users, with the exception of system users(admin, wiki, ham, spam). With many accouts, it will take some time.
Tell me if this helps!