[SOLVED] Disk Quota Issue

15 posts / 0 new
Last post
#1 Tue, 02/23/2010 - 12:12
zer0

[SOLVED] Disk Quota Issue

Hi, I have a small problem, I have two user accounts which show that the quota of 50MB has been reached even though the inbox is pretty much empty. and they can not receive any emails. They use outlook 2007 to retrieve their emails from the server. Any ideas as to what is going on?

Log entry of the account, when someone sends email to

Feb 23 09:49:21 domain postfix/local[3110]: 0BA957E186: to=name.domain@domain.ca, orig_to=name@domain.ca, relay=local, delay=14, delays=10/0.01/0/3.8, dsn=5.2.0, status=bounced (can't create user output file)

any help will be appreciated

Tue, 02/23/2010 - 12:16
andreychek

You may want to look in other email folders they own, such as the spam folder.

Also, there may be other files on the filesystem owned by them. For example, sometimes programs can create temp files in /tmp owned as the user... you may want to take a peek in there, and delete any files you don't need.

-Eric

Tue, 02/23/2010 - 12:36 (Reply to #2)
zer0

i checked the total size of the folder for the users its 54.9kb, and the quota is set to 50MB. and their temp folders are empty

More Logs

Feb 23 11:58:04 Domain dovecot: imap-login: Login: user=<name.domain>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 23 11:58:04 Domain dovecot: IMAP(name.domain): mkdir(/home/domain/homes/name/Maildir/.sent/cur) failed: Disk quota exceeded
Feb 23 11:58:04 domain dovecot: IMAP(name.domain): mkdir(/home/domain/homes/name/Maildir/.drafts/cur) failed: Disk quota exceeded
Tue, 02/23/2010 - 12:43
andreychek

It definitely sounds like there's some files somewhere on the file system owned as those users, the key is to figure out where those are :-)

Try running this command:

find / -user USERNAME

Where "USERNAME" is the actual username of the user who's quota is full -- that should help you track down what's chewing up the space.

-Eric

Tue, 02/23/2010 - 12:50 (Reply to #4)
zer0

did that in terminal and

administrator@domain:~$ find/ -user aileenp
bash: find/: No such file or directory
Tue, 02/23/2010 - 12:52
andreychek

There should be a space between "find" and "/" :-)

-Eric

Tue, 02/23/2010 - 12:56 (Reply to #6)
zer0
administrator@domain:~$ find / -user aileenp
find: invalid argument `aileenp' to `-user'
Tue, 02/23/2010 - 12:58 (Reply to #7)
zer0

maybe i'm doing it wrong. i cant find the dir i know are there, i get the same message in terminal. I'm using ubuntu 8.04 if that helps at all

Tue, 02/23/2010 - 13:02
andreychek

You'd get that particular error if the user you're passing in doesn't exist.

Are you sure that the user is "aileenp", and not "aileenp.domain"?

-Eric

Tue, 02/23/2010 - 13:14 (Reply to #9)
zer0

you are right, it is aileep.domain, but this does not tell me which one is taking up space

find: /proc/9429/task/9429/fd/4: No such file or directory
find: /proc/9429/task/9429/fdinfo/4: No such file or directory
find: /proc/9429/fd/4: No such file or directory
find: /proc/9429/fdinfo/4: No such file or directory
/home/domain/homes/aileenp
/home/domain/homes/aileenp/.usermin
/home/domain/homes/aileenp/.usermin/mailbox
/home/domain/homes/aileenp/.usermin/mailbox/dsnreplies.dir
/home/domain/homes/aileenp/.usermin/mailbox/dsnreplies.pag
/home/domain/homes/aileenp/.usermin/mailbox/inbox.imap
/home/domain/homes/aileenp/.usermin/mailbox/attach.pag
/home/domain/homes/aileenp/.usermin/mailbox/delreplies.pag
/home/domain/homes/aileenp/Maildir
/home/domain/homes/aileenp/Maildir/new
/home/domain/homes/aileenp/Maildir/.spam
/home/domain/homes/aileenp/Maildir/.spam/new
/home/domain/homes/aileenp/Maildir/.spam/tmp
/home/domain/homes/aileenp/Maildir/.spam/cur
/home/domain/homes/aileenp/Maildir/dovecot.index.log
/home/domain/homes/aileenp/Maildir/dovecot.index
/home/domain/homes/aileenp/Maildir/dovecot-uidlist
/home/domain/homes/aileenp/Maildir/dovecot.index.cache
/home/domain/homes/aileenp/Maildir/tmp
/home/domain/homes/aileenp/Maildir/cur
/home/domain/homes/aileenp/Maildir/cur/1265925050.23454_1.domain.ca:2,S
/home/domain/homes/aileenp/Maildir/cur/1265942713.859_0.domain.ca:2,S
/home/domain/homes/aileenp/Maildir/.trash
/home/domain/homes/aileenp/Maildir/.trash/new
/home/domain/homes/aileenp/Maildir/.trash/tmp
/home/domain/homes/aileenp/Maildir/.trash/cur
/home/domain/homes/aileenp/.spamassassin
/home/domain/homes/aileenp/.spamassassin/bayes_seen
/home/domain/homes/aileenp/.spamassassin/bayes_toks
/home/domain/homes/aileenp/.spamassassin/user_prefs
/home/domain/homes/aileenp/.spamassassin/auto-whitelist
find: /home/administrator/.gvfs: Permission denied
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/main.db
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/main.hdb
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/main.info
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/main.mdb
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/COPYING
/tmp/clamav-87371eb231f4b9a7f2eed34a07a8e470/main.ndb
/var/mail/aileenp.domain
/etc/webmin/mailboxes/maildircache/_home_domain_homes_aileenp_Maildir
Tue, 02/23/2010 - 13:16
andreychek

So now the key is to review the files it found, and figure out what's using up the space.

I'd probably start by taking a look at those /tmp/clamav* directories.

-Eric

Tue, 02/23/2010 - 13:20 (Reply to #11)
zer0

ok so the clamav folder is about 50MB, is that folder associated with the account? should i delete it? how did it get so big, i have accounts with million times more activity than this account and they never get filled like this.

Tue, 02/23/2010 - 13:28
zer0

Howcome other users do not have the clamav folders? even though the option to scan for viruses and spam is enabled on all accounts.

Tue, 02/23/2010 - 13:50
andreychek

Yeah, I'd recommend just deleting those folders.

One way to prevent them from being created is to use the ClamAV daemon rather than the standalone program... you can set that in Email Messages -> Spam and Virus Scanning -> Virus scanning program.

I'd recommend setting it to "Server Scanner" if you aren't seriously constrained on RAM.

-Eric

Tue, 02/23/2010 - 14:11
zer0

problem solved. thank you sir once again...

Topic locked