Email disk usage bug

ClayRabbit

Verified User
Joined
Jan 3, 2004
Messages
256
Location
Russia
DirectAdmin doesn't count user's default mailbox size.
Here is an example:
 

Attachments

  • untitled.jpg
    untitled.jpg
    42.3 KB · Views: 277
Last edited:
If /var and /home is same partition, mailbox size will be counted with quota, but in account info "email usage" is still incorrect and that will mislead user.
 

Attachments

  • untitled2.jpg
    untitled2.jpg
    68.2 KB · Views: 220
Last edited:
Finally figured out the nature of this bug.
DirectAdmin doesn't count space used by unix-user mailboxes in /var/mail.
DA trying to count mailboxes in /var/spool/mail, just like on RedHat, but on FreeBSD there is no such directory by default.
After I created symlink /var/spool/mail -> /var/mail, mail disk usage becomes counted correctly.
 
Hello,

Fix added to the DA binary for next release. (the link workaround will work perfectly until then ;))

The email stats page already used the correct path, but tally wasn't.

John
 
Back
Top