Question about how Quota's work (email/disk/database etc)

webunity

Verified User
Joined
Sep 23, 2014
Messages
49
Recently i switched from a 1U server (where e-mail quota did not count towards disk quota) to a VM with DA installed on it. This VM is limited with regards to disk size, and to be honest i don't know how the quota system 'usually' works, since i had a custom pre-build implementation before.

If i set a quota for a user to 1000 (mb), and look that user up in DA, i see the following information:
Total Disk Usage (MB) 584.6 / 1000
Email Disk Usage 506.4 MB
Database Disk Usage 144 KB

If i interpret this data correctly, this means that:
1) E-mail box sizes add to the DA quota
2) Filesize in use is currently about 78 megabyte

Are these assumptions correct?

And is there an API which i can call to generate a quota report? I think i should be helped with these, but i am not entirely sure...
  • Get list of all domains on the server (which API, does it also return the associated users?) then iterate through users by means of CMD_API_SHOW_USER_USAGE?user=username
  • Get a list of all created databases for a user/domain (how?) then iterate and get the quota's CMD_API_DATABASES?action=quota&name=dbname (username_ will be added if i am correct)
  • Get a list of all e-mail accounts for a domain with CMD_API_POP?action=list&domain=domain.com&type=quota

Once i combine this i can create a more detailed per user report, right?
 
It looks like your assumption is correct.
DA quota is setup from size of the database, size of emails present on the server and size of files and folders the user has in use.

I'm not using api's so unfortunately I can't help you with that.
 
Back
Top