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!

Quotas on reseller accounts

Discussion in 'General Discussion' started by Paul Ward, Apr 12, 2017.

  1. Paul Ward

    Paul Ward Member

    Nov 30, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi all,

    I'd like to know if there is an easy way to find all users that are over quota and are no longer using there accounts.

    I've inherited a cpanel/WHM system that is in a bit of a mess. I have several re-seller accounts and many cpanel user accounts also.

    I am able to find the user accounts by using either # quota -su or looking at the /var/cpanel/repquota.cache file.
    However the re-seller ones seem harder to get at, logging in as the re-seller I can see warnings for 3 accounts, looking at them I can see they have quotas set at 250MB for mail however one of them is showing over 800MB. I wanted to know is there a way I can list all re-seller accounts over quota or will I have to resort to some bash scripting to work it out?

    On a side note does anyone know a way to establish if an account is in use? Currently my method is looking at the mail dir for the user, then drill down to the cur and new dir, I've been thinking if there are no files in cur or no files in new then they have been read and removed, yet if there are lots of files in new and they date back up to several years ago (2015 I've seen) then I assume no one is looking at them and the account is not active.

  2. Peoplespaces

    Peoplespaces Well-Known Member

    Oct 1, 2001
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    In WHM go to 'Account Information' and then 'Show Accounts over Quota'. That will show all hosting accounts over quota.

    If you check the domain registration and run a traceroute on the domain names that you think are not used, that may verify same.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    The "Show Accounts Over Quota" feature in WHM will show you a list of all accounts that have reached their disk space limit. For the reseller account itself, you may find this thread helpful:

    Reseller Disk Usage - CLI

    You could also review /usr/local/cpanel/logs/login_log or /var/log/maillog to see if there's any activity for the account username or individual email accounts.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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