mail quota not working

duke28

Verified User
Joined
Oct 30, 2005
Messages
304
Location
Montreal - Canada
i think quota mail or quota account not working

i put a quota for pop3 account to a user 25mb,
and the mail box have 75mb ( so he is full )

and he can receive more email again
and the web account is FULL since 1 week,
and he can receive many email again..

the user not suppose to receive emails when the web space is full

so what can be the problem ??
 
I also have the same problem.

I only have a swap partition and an ext3 partition that hold all the /var, /boot, /home ...etc.
and i am running fedora core 3

I have an email account in a domain that have a mailbox quota size of 40MB but it now contains 80MB of mail, and it is still willing to receive more without any warning message or rejecting any mail for that mail account.

From directadmin control panel, it also shows that the box is containing 80MB mail with a 40MB quota and the figure is increasing everyday.....


Acutally, the whole web hosting account have a quota of 200MB, but the current total usage is 325MB(50MB web page usage, and 250MB email usage) now and the that domain is turning red in color in the control panel, but the account is still able to receive mail....

I have no idea what is going on....
 
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
 
The unix quota system only counts file ownership.

DA counts files wtih contents that belong to users.

Jeff
 
Thanks for your info,jlasman.



I have copied the whole problem domain account and restore it on our testing server so that i can play with the account.

I find that if a email user tom have never use imap client to read email (ie. if he only use pop3 or UebiMiau), then there is nothing for that user inside the /home/xxx/imap/xxx.com/.

However, once he use imap client (squirrelmail) to read mail, an directory will be created for him under/home/xxx/imap/xxx.com/tom/mail :

INBOX.Drafts
INBOX.Sent
INBOX.Trash

the owner of those 3 files are roots.

As stated in my last post, the directadmin reported usage and the system quota reported usage for the domain have large difference. So to test my assumption in my last post, i login to the problem email account using squirrelmail find that there are around 50MB in that email user's trash box, so I purge it.

after purging, i find that the size of the INBOX.Trash shrink a lot. Then, I rerun the quota check and the tally.

This time, the directadmin reported usage and the system quota usage come to very close.

So, my conclusion is, when you see a user's mailbox is over-full in directadmin, for example 20MB quota with 40MB usage, but the user is still able to receive email, this may be because exim quota only count the size of

/var/spool/virtual/xxx.com/tom

exim quota will ignore the size of the above stated INBOX.Trash, etc...


So, if /var/spool/virtual/xxx.com/tom has 10MB
and INBOX.Trash has 30MB

exim will still accept more email since only 10MB was counted by exim. While directadmin count it as 40MB

and the system quota will not prevent more email coming because the INBOX.Trash is owned by root, so not counted in total account usage.

Am I conclusion reasonable????
 
I suspect a lot of my clients have trouble with their mailboxes because of IMAP folders owned by root instead of themselves. Quite frequently outgoing IMAP mail isn't saved in their Sent folder, and some people specify Sent, instead of INBOX.Sent as their Sent folder instead, which causes problems because the folders are owned by root.

Anyone got a quickfix for this, or some kind of insight into what causes this?
 
Back
Top