After set COS for all users as described on previous article, overall the value/features on COS has been rewrite for all users. However, i am still get default value for some users such as quotas. Quotas for some users still using default value (unlimited). if checked via Zimbra Admin | Manage | Account | right click and select edit for account which still using default value on quota, i get the following information
I could click Reset to COS value and automatically value of quota using COS rule. For some users such as 3-5 users, maybe i can do it manually via Zimbra admin. But if a lot of users who have the same value on quotas, manually process is need more time until done. I am decided to using Zimbra Command Line for the shorter time. The following is example command for reset value of quotas to COS rule.
[code lang=’bash’]
zmprov ma [email protected] zimbraMailQuota “”
[/code]
Note : The above command will enforce [email protected] for using zimbraMailQuota on COS rule. For enforce all users to using COS value, you could make a script as below
[code lang=’bash’]
vi /srv/reset-to-cos.sh
[/code]
Fill with the following line
[code lang=’bash’]
#!/bin/bash
clear
rm /srv/reset-to-cos.zmp
echo “Retrieve zimbra user name…”
USERS=`su – zimbra -c ‘zmprov -l gaa | sort’`;
for ACCOUNT in $USERS; do
echo “Enforce COS value for account $ACCOUNT”
echo “ma $ACCOUNT zimbraMailQuota ”” >> /srv/reset-to-cos.zmp
done
[/code]
Give execute access and run the above script
[code lang=’bash’]
chmod +x /srv/reset-to-cos.sh
sh /srv/reset-to-cos.sh
[/code]
The result of the above script is file with name reset-to-cos.zmp which is located in /srv/ folder. Execute it file with the following command as user Zimbra
[code lang=’bash’]
su – zimbra
zmprov < /srv/reset-to-cos.zmp
[/code]
If you want to reset to COS value for another attribute, you could change zimbraMailQuota with other attribute/parameters.
Good luck and hopefully useful :D
Hi,
Nice to see your all documents. Such you have very good knowledge of zimbra.
I would like to ask one question regarding zimbra admin, so can you share how to give limit rights to zimbra admin in open source?
Hi,
Please take a look at this link : http://imanudin.com/2013/09/22/tips-zimbra-domain-admin-delegation-pada-zimbra-ose/
hi thank you for all your documents,
i have one domain and 2 Cos (one default and another Externeldefault)
i need to delete “externeldefault”but i can’t “error request invalid”‘
thank you to give me some idears
Hi Fatimainfo,
By default, COS external default cannot be deleted.
hi iman,thank you for your answer