Mass Setting Mailbox Quotas

brianell

Member
Jul 27, 2009
6
0
51
Hi,

A problem (for me anyway) is the x3 skin default Mailbox quota of 250MB. I am now being inundated with clients complaining THEIR mailbox is not full, why is their mail being bounced as over quota? They forget that their buddy/wife/husband.son/daughter has allowed his mail to pile up to use the full 100 Mb their 5 e-mail account package allows for disk storage.

I am thus looking for shell script that will run from root and reset ALL mailboxes on my server to 20MB, I do not relish the thought of setting 6800 quotas one-by-one through CPanel!
I am on a dedicated server, so my antics will affect nobody but myself and a few hundred clients :D

Any help in this direction will be greatly appreciated.

Brian
bearwebb.com
Zimbabwe
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hi,

A problem (for me anyway) is the x3 skin default Mailbox quota of 250MB. I am now being inundated with clients complaining THEIR mailbox is not full, why is their mail being bounced as over quota? They forget that their buddy/wife/husband.son/daughter has allowed his mail to pile up to use the full 100 Mb their 5 e-mail account package allows for disk storage.

I am thus looking for shell script that will run from root and reset ALL mailboxes on my server to 20MB, I do not relish the thought of setting 6800 quotas one-by-one through CPanel!
I am on a dedicated server, so my antics will affect nobody but myself and a few hundred clients :D

Any help in this direction will be greatly appreciated.

Brian
bearwebb.com
Zimbabwe
One idea would be to build a script that uses our APIs to do this for you. You could list all cPanel accounts on the server, then loop through each cPanel account to find all email accounts for that cPanel account and loop through those email accounts to change the quota of each mail account.

You can find some documentation about our XML API at:

XmlApi < AllDocumentation/AutomationIntegration < TWiki

If you want to pursue this route, let me know and I'll assist you with the API calls.