cos mailbox quota not applying in all member user

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
420kirtan
Advanced member
Advanced member
Posts: 65
Joined: Sat Sep 13, 2014 1:25 am

cos mailbox quota not applying in all member user

Post by 420kirtan »

Hi Friends,
We have zimbra network Edition here arround 6000 mail box available and

i set cos mail quota 250MB before four days but till now not its done only 25 user mail box quota set automatic 250mb other all user not any changes
please guide me what in need to do for 6000 user mail box quota set automatic

not manually.
Please guide me its creatical issue
Thanks & Regards

Kirtan Patel

Email Patel.kirtan@ishanitech.biz

Mo. +919879612550
gvillari
Advanced member
Advanced member
Posts: 159
Joined: Sat Sep 13, 2014 1:11 am

cos mailbox quota not applying in all member user

Post by gvillari »

[quote user="420kirtan"]Hi Friends,
We have zimbra network Edition here arround 6000 mail box available and

i set cos mail quota 250MB before four days but till now not its done only 25 user mail box quota set automatic 250mb other all user not any changes
please guide me what in need to do for 6000 user mail box quota set automatic

not manually.
Please guide me its creatical issue
Thanks & Regards

Kirtan Patel

Email Patel.kirtan@ishanitech.biz

Mo. +919879612550[/QUOTE]
Have you created more cos on server, over the default cos?
Do the users belong to the cos for which you have set quota?
Also give us information about zimbra version.
Regards
420kirtan
Advanced member
Advanced member
Posts: 65
Joined: Sat Sep 13, 2014 1:25 am

cos mailbox quota not applying in all member user

Post by 420kirtan »

HI Sir,
Thanks for reply

On Zimbra server only one default cos available and all user member of this and

Second we have zimbra 7.1.2_GA_3268.FOSS Edition

I attached one jpg please check all user property show this
Please reply soon..
Thanks

Kirtan Patel
Zimbra COS.jpg
gvillari
Advanced member
Advanced member
Posts: 159
Joined: Sat Sep 13, 2014 1:11 am

cos mailbox quota not applying in all member user

Post by gvillari »

The reason is that, for those users for which don't apply the changes, the quota value is defined manually for account.
Regards
420kirtan
Advanced member
Advanced member
Posts: 65
Joined: Sat Sep 13, 2014 1:25 am

cos mailbox quota not applying in all member user

Post by 420kirtan »

Hi Dear,
You mean some this all quota set manually. or if manually is set so we need again set manually

if set manually which is best or easy way for set this because here 6000 user how can i set its manually

please give me any other way.
Thanks

Kirtan
gvillari
Advanced member
Advanced member
Posts: 159
Joined: Sat Sep 13, 2014 1:11 am

cos mailbox quota not applying in all member user

Post by gvillari »

Hi,
you have to run the following bulk provisioning script with name 'prov' in /tmp folder:


#!/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
#

################################################################################
# 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:



su zimbra

cd /tmp

./prov > /tmp/prov.zmp

zmprov

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!
420kirtan
Advanced member
Advanced member
Posts: 65
Joined: Sat Sep 13, 2014 1:25 am

cos mailbox quota not applying in all member user

Post by 420kirtan »

Hi Sir,
Its Done

LOts Of Thanks
Kirtan

patel.kirtan@ishanitech.biz
gvillari
Advanced member
Advanced member
Posts: 159
Joined: Sat Sep 13, 2014 1:11 am

cos mailbox quota not applying in all member user

Post by gvillari »

Glad you have solved!
Regards Giovanna...not Sir, but Lady :)
Post Reply