Viewing Email Account (Email User) Disk Quotas and Usage

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
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
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
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, [email protected], has an unlimited quota while the other e-mail account, [email protected], 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:

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
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, [email protected], has an unlimited quota while the other e-mail account, [email protected], 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:
[email protected] [~]# 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 a moderator:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
It seems odd can i show result in human-readable format see example below
Code:
[email protected] [~]# 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.