Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Viewing Email Account (Email User) Disk Quotas and Usage

    Quote Originally Posted by cPanelDon View Post
    The symptom is due to the "over quota" status being cached. For reference, this information is stored in the following directory path:
    Code:
    /var/cpanel/overquota/
    Here is a command that could be used to view the information stored in the above directory:
    Code:
    # grep -HnR '' /var/cpanel/overquota | sort
    is there any command to get a list of email users over quota for any particular domains

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by nileshparmar View Post
    is there any command to get a list of email users over quota for any particular domains
    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:
    Last edited by cPanelDon; 08-16-2010 at 03:37 PM. Reason: Fixed quote

  3. #3
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow

    Quote Originally Posted by cPanelDon View Post
    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:
    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
    Last edited by cPanelDon; 08-16-2010 at 03:38 PM. Reason: Fixed quote

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by nileshparmar View Post
    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
    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. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Arrow Friendly Moderator Note

    This topic, discussing e-mail account disk quotas, has been separated into a new thread to prevent confusion with the original discussion.

Similar Threads & Tags
Similar threads

  1. Viewing email account passwords
    By COMTEL_REEPER in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2010, 03:14 PM
  2. Email account showing wrong disk usage (0 kb)
    By webicom in forum E-mail Discussions
    Replies: 7
    Last Post: 11-13-2008, 10:26 AM
  3. Email account disk usage incorrect
    By ThinIce in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-19-2006, 08:33 AM
  4. Updating User Email Quotas
    By tsilihin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-10-2004, 10:02 PM
  5. Viewing Disk Space Usage
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-15-2003, 08:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube