I was trying to figuring out what is going on.
I only have / partition which holds all of /boot, /var, /home ....etc
Here is what I find:
After I run
/sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a
I find that the quota usage (total space usage of the problem domain is 45MB)
then i run the tally:
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
However, on directadmin control panel, it shows that that domain is using
336MB total space
297.4MB of email space
478K of database space.
So, the problem seems to be that directadmin has somehow overcounting the email usage,
, or wrong ownership of some files made the qutoa check undercount the usage.
I choose 2 problem email account from the problem domain with the following setting:
[email protected] | email quota:20MB | usage shown in directadmin: 62.699MB
[email protected] | email quota:40MB | usage shown in directadmin: 104.13MB
I find the following inside the above 2 user's mail dir:
ls out of /home/pacific/imap/xxx.com/simonlaw/mail
total 105356
-rw------- 1 root root 507 Dec 15 14:08 INBOX.Drafts
-rw------- 1 root root 507 Dec 15 14:08 INBOX.Sent
-rw------- 1 root root 107761828 Feb 6 11:16 INBOX.Trash
ls output of /home/pacific/imap/xxx.com/fiona/mail
total 61844
-rw------- 1 root root 507 Dec 21 09:48 INBOX.Drafts
-rw------- 1 root root 507 Dec 21 09:48 INBOX.Sent
-rw------- 1 root root 63249531 Feb 8 14:41 INBOX.Trash
It seems the INBOX.Trash file of the above users belong to root instead of user xxx.
So my thought is, if directadmin count these two files as usage of xxx, but
the OS quota system do not count these two file as usage of xxx, this
will surely create a mismatch between the diectadmin figure and the quota check returned figure
I am not a email professional, anybody has something to says about my assumption???
thanks in advance