6 replies
by wittanone
Hello, try this to clear your problem,
/sbin/quotaoff -a
/sbin/quotacheck -ugia
/sbin/quotaon -a
The first command will turn your quotas' off.
The next command will test/check the quotas' one at a time for errors and/or corruption and allowyou a chance to fix them,
The last turns the quotas' back on.
It seems to be working for the customers where I work.
I found this information at: http://www.die.net/doc/linux/man/man8/quotacheck.8.html
by cjcknight
by paulo.sedrez
Common mistake.
The problem is that qpopper - and other pop server - try very hard to preserve the original mailbox, so that when they are updating it, they are actually acting on a copy - so, duplicating the disk space requirements.
The solution: use the hard limit to be the double of the soft limit. This will will let room to qpopper work, will still warn you of quota exceeded and let the user a 7 days grace period to clean his/hers mailbox.
--Sedrez
by paulo.sedrez
There is another solution, but you eventually will get another kind of problem.
If you are using qpopper 4, you can specify a diferent directory for the temporary drop file. The daemon will then *copy* the file to that directory, which could be in another partition, with another quota.
The main problem is that this solution will be slower (copy file and back). Eventually, the user will receive e-mail while the popper is still executing; on return, it will not be able to put all mailbox back (because of quota restraints).
If you option is that, you can create a configuration file - let's say, /etc/qpopper.conf - with the line "set temp-dir = /var/spool/poptemp", and add the parameter "-f /etc/qpopper.conf" on the qpopper call (xinetd.conf? xinited.d/qpopper?).
The best solution would be to configure the maildrop program - like procmail, in /etc/procmailrc - to check if the user exceeded its soft quota limit, and in this cases send the file back to queue.
If that is your option, you can use this as base for your /etc/procmailrc:
# Drop privilegies, became user
DROPPRIVS=yes
# Check if quota exceeded
QUOTA_OUT=`/usr/bin/quota | /bin/grep -c `
# if QUOTA_OUT is not 0, requeue the message
:0:
* ! QUOTA_OUT ?? 0
| /bin/kill -TERM $$
--Sedrez
by cjcknight
by cjcknight
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending