Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-2011, 11:48 PM
Active Member
 
Posts: 49
Default cos mailbox quota not applying in all member user

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
Reply With Quote
  #2 (permalink)  
Old 12-28-2011, 03:24 AM
Trained Alumni
 
Posts: 160
Default

Quote:
Originally Posted by kirtan View Post
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
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
Reply With Quote
  #3 (permalink)  
Old 12-28-2011, 04:36 AM
Active Member
 
Posts: 49
Default

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
Attached Images
File Type: jpg Zimbra COS.jpg (37.5 KB, 19 views)
Reply With Quote
  #4 (permalink)  
Old 12-28-2011, 06:33 AM
Trained Alumni
 
Posts: 160
Default

The reason is that, for those users for which don't apply the changes, the quota value is defined manually for account.

Regards
Reply With Quote
  #5 (permalink)  
Old 12-28-2011, 06:45 AM
Active Member
 
Posts: 49
Default

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

Last edited by kirtan; 12-28-2011 at 07:01 AM..
Reply With Quote
  #6 (permalink)  
Old 12-28-2011, 07:41 AM
Trained Alumni
 
Posts: 160
Default

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!

Last edited by gvillari; 12-28-2011 at 07:52 AM..
Reply With Quote
  #7 (permalink)  
Old 12-28-2011, 09:20 PM
Active Member
 
Posts: 49
Default

Hi Sir,

Its Done
LOts Of Thanks

Kirtan
patel.kirtan@ishanitech.biz
Reply With Quote
  #8 (permalink)  
Old 12-29-2011, 12:55 AM
Trained Alumni
 
Posts: 160
Default

Glad you have solved!

Regards Giovanna...not Sir, but Lady
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.