Disk space / Mail usage

stars

Verified User
Joined
Nov 3, 2010
Messages
65
I have problem with disk space info for one of my user accounts:

Code:
Total Disk Usage (MB)	788.2	10000
  Email Disk Usage	5.30 GB	
  Database Disk Usage	264 KB

It looks like mail usage isn't taken into disk space info.

Any ideas - I'm running centos 5.5 64bit. I've tried http://help.directadmin.com/item.php?id=222 but it didnt work.
 
My understanding is it should be counted, then. Anyone else have any ideas?

Jeff
 
Hello,

1) First, determine where the email in question is from. I actually coded a feature last night which will help you do this. Grab these pre-release binaries to get the feature.
https://www.directadmin.com/clients

click your license, and follow the pre-release link.

This is the feature:
http://www.directadmin.com/features.php?id=1258


2) Note that the bulk of email is already going to be counted within the System Quotas for the User. That data will be in /home/user/Maildir or /home/user/imap. You can check those folders for the 5 gig. If it's there, then either the permissions are wrong on the data, or the system quotas are not working correctly.
Permissions: http://help.directadmin.com/item.php?id=173
System quotas: http://help.directadmin.com/item.php?id=42

(FYI: ensure that /usr/sbin/exim is chmod to 4755 after due to due a recently found bug

3) However, if the system quotas are correct, and the 5 gig is not under /home/user, then it would be either in:
/etc/virtual/domain.com/majordomo

or somewhere in:
/var/www/html/webmail/tmp


But again, the new feature from #1 will help determine what's going on.

John
 
One of my user has a disk space problem

He has 3gig diskspace but he used 1.2gig.
/home/user
And mail folders totally 1.2gig

user.usage file
bandwidth=1.41
db_quota=41327
domainptr=0
email_deliveries=0
email_deliveries_incoming=0
email_deliveries_outgoing=0
email_quota=8192
ftp=1
mysql=1
nemailf=0
nemailml=0
nemailr=0
nemails=1
nsubdomains=3
quota=3351.9
vdomains=1

domain.usage
bandwidth=0.169615
log_quota=0.0017395
quota=1136.39


ı use this commands
cd /usr/local/directadmin
echo "action=tally&value=username&type=user" >> data/task.queue
./dataskq d800

but its still same...

root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
Tally User username Begin
/var/spool/mail/username is 0 : total: 0
/home/username/Maildir is 0 : realtotal: 0
/home/username/imap is 8192 : realtotal: 8192
/home/username/.spamassassin/spam is 0 : total: 0 realtotal: 8192
/home/username/.spamassassin/user_spam is 0 : total: 0 realtotal: 8192
/var/spool/virtual/username.info is 0 : total: 0 realtotal: 8192
Majordomo usage for /etc/virtual/username.info/majordomo : 0
databases for username
DAdminUsage.bytes for username
Counting found totals for username
total bw is 1473420.000000 from 1473420 (long long: 1473420)
bw in meg: 1.405163
meg converted to a string: 1.41
spaceused: 3514720256.000000 (just quota)
spaceused: 3514761583.000000 (add dbtotal 41327)
spaceused: 3514761583.000000 (add emltotal 0) (fyi: realemltotal: 8192)
spaceused: 3514761583.000000 (add apachetotal 0)
spaceused: 3514761583.000000 (add anonftptotal 0)
spaceused, in meg: 3351.937850
meg to temp: 3351.9
user.usage quota: 3351.9 actual: 3351.937850 (should match)
user.uagae email_quota: 8192 actual: 8192 (should match)
Tally User username Complete
done queue
 
Last edited:
can i delete /tmp/ files?
these are system files or trash files?
 
Last edited:
You can delete files in /tmp, but you may want to reboot after you do if you delete important tmp files.

If you find files owned by the User there, then those specific files should be safe to delete.

John
 
Back
Top