Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mass Setting Mailbox Quotas

Discussion in 'E-mail Discussion' started by brianell, Jul 27, 2009.

  1. brianell

    brianell Member

    Joined:
    Jul 27, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice