Am Fr, den 24.09.2004 schrieb Edward Neville um 17:34:
> > -----Original Message-----
> > From: Tom Collins [mailto:[EMAIL PROTECTED] 
> > Sent: 24 September 2004 15:02
> > To: [EMAIL PROTECTED]
> > Subject: Re: [vchkpw] Quota
> > 
> > Vpopmail has domain quotas, but they're broken.  Even if/when they do 
> > work, they add a lot of load since vdelivermail has to calculate the 
> > domain's disk usage every time a message is delivered.
> > 
> > I didn't write the original implementation, I don't use them myself, 
> > and I'm not particularly interested in finding the problem and fixing 
> > it.
> 
> Ok! I have a large number of domains to administer (6000 ish). I Just
> stumbled upon the high disk usage that one domain had through having many
> accounts of 50meg mailboxes.

Hehe. I've now created a little script:

[EMAIL PROTECTED] cat /root/bin/top50.sh
#!/bin/sh
/root/bin/space.sh |sort -u|xargs du -d 0|sort -n -r |head -n 50

where space.sh contains:

#!/bin/sh
 for i in  `~vpopmail/bin/vdominfo -n | egrep -v ^$`
  do
     ~vpopmail/bin/vuserinfo -d -D $i
  done

That should at least match the topX accounts.
I don't know how well it scales, though. 

> Would a quota filesystem be a big overhead? If not, can you suggest a
> implementation for locking a domain to a quota?

OS Quotas is the only way to go, I'm told. 

> If you have any questions or queries please let me know.


I think you must create am OS-group and add the new domain with -g
GID_of_the_new_group.
Then you can use group-quotas to limit the disk-usage of the files of
this particular group.

 
I still have to try this myself- the problem is, there's no GUI to do
that, vqadmin doesn't handle GIDs. 



Rainer
-- 
===================================================
~     Rainer Duffner - [EMAIL PROTECTED]     ~
~           Freising - Munich - Germany           ~
~    Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===================================================

Reply via email to