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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Quotas on reseller accounts

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

Tags:
  1. Paul Ward

    Paul Ward Member

    Joined:
    Nov 30, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    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.

    Cheers
    Paul
     
  2. Peoplespaces

    Peoplespaces Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    222
    Likes Received:
    3
    Trophy Points:
    318
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    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.
     
Loading...

Share This Page