RE: [vchkpw] vpopmail max quota of 2GB

2007-01-17 Thread Iulian Liviu Ionescu

 are u running mailbox or maildir?
 u might have hit a file system 
 2gb file size limit if you are running mailbox.

I am running maildir, so there's no limit in file size.


Thanks,
Iulian


Re: [vchkpw] vpopmail max quota of 2GB

2007-01-16 Thread Iulian Liviu Ionescu

Hi Tom,

Thank you for the answer. I consider writing an implementation for
maildir++ quota that supports over 2GB in a shared library and use it
with all the software that is in place (courier-imap, vpopmail and
qmail).


Iulian


On Mon, 15 Jan 2007, Tom Collins wrote:

 On Jan 15, 2007, at 9:29 AM, Iulian Liviu Ionescu wrote:
  It seems that there's a limit in quota at 2GB. What are the options
  available to have mail accounts with more than 4 GB quota?
 
 One options: rewrite the Maildir++ patches for qmail and POP/IMAP servers,
 along with vpopmail's quota support code to use a larger variable type to
 store the sizes (long long?).  It might be possible to work around it with a
 hack of storing message sizes in bytes, but the total of the sizes (and the
 user's quota) in KB.  This would get you up to 2TB quotas.
 
 foreach message_size do {
 bytes += message_size;
 kbytes += bytes / 1024;
 bytes = bytes % 1024;
 }
 
 I'm sure that at the time it was written, 2GB seemed like an insane quota for
 a mailbox.  Unfortunately it's now a realistic number.
 
 Keep in mind that if you've got 2GB mailboxes, it probably requires lots of
 resources to recalculate disk usage.  Consider running a nightly cronjob that
 calculates disk usage for all email users and warns the ones who are over
 quota.  If they stay over for a certain period, bill them or turn their
 account off.
 
 Not a pretty solution, but I'm afraid there's no easy way to support quotas
 over 2GB.
 
 --
 Tom Collins  -  [EMAIL PROTECTED]
 Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
 QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
 
 
 


RE: [vchkpw] vpopmail max quota of 2GB

2007-01-16 Thread shadowplay.net

 -Original Message-
 From: Iulian Liviu Ionescu [mailto:[EMAIL PROTECTED] 
 Sent: January 15, 2007 12:30
 To: vchkpw@inter7.com
 Subject: [vchkpw] vpopmail max quota of 2GB
 
 
 
 Hi,
 
 It seems that there's a limit in quota at 2GB. What are the options 
 available to have mail accounts with more than 4 GB quota?
 
 
 Thx,
 Iulian


are u running mailbox or maildir?
u might have hit a file system 
2gb file size limit if you are running mailbox.

kenneth brown
ceo shadowplay.net



Re: [vchkpw] vpopmail max quota of 2GB

2007-01-15 Thread Tom Collins

On Jan 15, 2007, at 9:29 AM, Iulian Liviu Ionescu wrote:

It seems that there's a limit in quota at 2GB. What are the options
available to have mail accounts with more than 4 GB quota?


One options: rewrite the Maildir++ patches for qmail and POP/IMAP  
servers, along with vpopmail's quota support code to use a larger  
variable type to store the sizes (long long?).  It might be possible  
to work around it with a hack of storing message sizes in bytes, but  
the total of the sizes (and the user's quota) in KB.  This would get  
you up to 2TB quotas.


foreach message_size do {
  bytes += message_size;
  kbytes += bytes / 1024;
  bytes = bytes % 1024;
}

I'm sure that at the time it was written, 2GB seemed like an insane  
quota for a mailbox.  Unfortunately it's now a realistic number.


Keep in mind that if you've got 2GB mailboxes, it probably requires  
lots of resources to recalculate disk usage.  Consider running a  
nightly cronjob that calculates disk usage for all email users and  
warns the ones who are over quota.  If they stay over for a certain  
period, bill them or turn their account off.


Not a pretty solution, but I'm afraid there's no easy way to support  
quotas over 2GB.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/