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.

Viewing Email Account (Email User) Disk Quotas and Usage

Discussion in 'E-mail Discussions' started by crazyaboutlinux, Aug 13, 2010.

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    is there any command to get a list of email users over quota for any particular domains
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The issue discussed in this thread involves cPanel accounts (system users) being over quota, that of file system quotas, and not e-mail account users.

    I recommend using cPanel for managing e-mail accounts and viewing disk usage. If you need to view the e-mail user quota and usage information via command-line, SSH, or FTP, you may view the (automatically generated) YAML file at the following path within the applicable user's home directory:
    Code:
    ~/.cpanel/email_accounts.yaml
    Here is a command you may use via SSH to view the aforementioned YAML file, where "username" should be replaced by the applicable cPanel account username:
    Code:
    # cat ~username/.cpanel/email_accounts.yaml
    Here's an example of what the file contents may look like where one e-mail account, abuser@domain.tld, has an unlimited quota while the other e-mail account, user@domain.tld, has a defined quota of ~2048 MB:
    Code:
    # cat ~username/.cpanel/email_accounts.yaml
    --- 
    domain.tld: 
      accounts: 
        abuser: 
          diskquota: '0'
          diskused: 4170
          mtime: '1281732235'
        user: 
          diskquota: '2147483647'
          diskused: 9798
          mtime: '1281732205'
      disk_mtime: '1272426349'
      mtime: '1281732235'
      quota_mtime: '1281732235'
    If needing to modify e-mail account disk quotas please do so via cPanel to ensure all pertinent files are properly updated:
     
    #2 cPanelDon, Aug 13, 2010
    Last edited: Aug 16, 2010
  3. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    It seems odd can i show result in human-readable format see example below
    Code:
    root@server [~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             1.5G  769M  608M  56% /
    /dev/sda7             116G   53G   58G  48% /home
    /dev/sda6             494M   44M  426M  10% /tmp
    /dev/sda3             9.5G  5.1G  4.0G  57% /usr
    /dev/sda2              16G  9.5G  5.0G  66% /var
    
     
    #3 crazyaboutlinux, Aug 14, 2010
    Last edited by a moderator: Aug 16, 2010
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The sizes shown by "diskquota" and "diskused" are in bytes (B); you may easily convert between kilobytes (KB), megabytes (MB), and gigabytes (GB), by using a calculator to divide or multiply by 1024.
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
Loading...

Share This Page