Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th June 2013, 20:45
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default Improving and simplifying email mailbox quota management in ISPConfig

I'd like to open a dialog about how mailbox quotas are handled in ISPConfig. Let's walk through a common use-case.

I set a 10000MB quota in a client template, named "Basic Web Hosting". I apply this template to a client.

I create 10 new mailboxes for the client, and do not assign an explict quota to any mailbox. The 10 users share the 10000MB; the quota is not "divided evenly", which means that one user is able to consume 9000MB, leaving the other 9 users to share 1000MB.

I realize that I can "hard-code" each user's quota to be, for example, 1000MB. But then, resources may be "wasted" if one user hardly uses email, but 1000MB are being "reserved" for him, and one user requires a lot of large attachments but is limited to 1000MB. Also, this approach requires me to recalculate all users' quotas for the client in question, manually, each time a new mailbox is created (or whenever the client template quota is changed).

Ultimately, I'm looking for some type of "dynamic quota renogotiation" behavior that would allow for at least two different quota management schemes:

1.) All users share the client quota. (This "mode" is possible already.)

Benefits: Simple setup and limited or no maintenance; adding mailboxes or changing the client template poses no real risks.
Risks: There is nothing to stop an individual user from consuming the entire quota, thereby causing other users to go over-quota and not receive mail.

2.) All users split the client quota evenly; a 10000MB quota for 10 users means that each user will be guaranteed 1000MB. When new mailbox users are created, or the client template quota is changed, each user's quota is recalculated (divided evenly).

Benefits: Provides guaranteed resources for each user.
Risks: Users with lower storage requirements may "waste" disk space that another user under the same client could better-utilize. Also, a potential problem arises when a new mailbox is added or the client template quota is changed; if any user is near his quota, the quota recalculation could cause him to be over-quota instantly. (I have no suggestion for addressing this problem at the minute.)

Are there additional schemes that might be useful?

Has this issue been discussed internally (or externally) already? Has someone elucidated clearer, more complete plans to implement something like what I describe?

Thanks!

Last edited by cbj4074; 10th June 2013 at 21:56.
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2013, 09:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

What you described above is not the way quota works in ispconfig. Each mailbox has its own quota and only the quota of the mailbox is applied to incoming emails. The quota value that you set in the client limits the client to add mailboxes with a higher overall space in ispconfig. So a mailbox user can nevre consume any resources from another mailbox user as you described above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th June 2013, 16:08
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default

Thanks for responding, Till. I sure do appreciate your time.

Okay, I see. That's great to know.

So, what happens if I don't specify a quota for any mailboxes under a given client, but the client template that's applied specifies 10000MB?

Does this mean that there is simply no quota applied to the mailboxes? And by extension, that the client is able to add any number of new mailboxes -- even if the current total of all this client's mailboxes exceeds 10000MB?

Or am I misunderstanding?
Reply With Quote
  #4  
Old 11th June 2013, 16:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

Quote:
So, what happens if I don't specify a quota for any mailboxes under a given client, but the client template that's applied specifies 10000MB?
You cant do that as a client. A administrator can override quotas of course, but a client cant. Try it out yourself, set a limit of 1000MB for the client in the client limits, then login as this client and try to create a 500mb plus a 600mb mailbox, you will get a error like this:

"The max space for mailboxes is reached. The max. available space in MB is: 1000"

when you try to create the second mailbox. if the second mailbox is smaller then 500mb so it fits in the client quota, you will be able to create it.

Same happens when you try to create a unlimited mailbox as this client as unlimited exceeds the allowed quota size.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
lutletworry (13th June 2013)
  #5  
Old 11th June 2013, 17:31
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default

Okay, very good. That behavior makes sense and I wish it were better-described in the manual. (Maybe it is and I missed it; my manual is old, too, purchased 2012.01.30.)

Given everything you've stated, I suppose that my only "wish" is to be able to "re-allocate quota" for all mailboxes for a given client.

The problem I see arising occurs when we need to increase a client's quota. Suppose that the client's quota is set to 10000MB. Suppose also that the client has set each mailbox's quota to 1000MB (and there are 10 mailboxes).

If we increase the client's quota to 20000MB, wouldn't the client have to adjust all of his mailbox's quotas, one at a time, in order to give each mailbox a 2000MB quota?

Basically, I would like to be able to click a button, "Re-allocate quota by dividing available client quota across all client mailboxes". Does this make sense? Or am I still missing something?

Thanks again, Till.
Reply With Quote
  #6  
Old 11th June 2013, 17:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

Quote:
If we increase the client's quota to 20000MB, wouldn't the client have to adjust all of his mailbox's quotas, one at a time, in order to give each mailbox a 2000MB quota?
YEs, he would have to reallocate the space aat it might also be that he wants to increase the psca only for some mailboxes or that he wishes to add additional mailboxes which require the space.

Quote:
Basically, I would like to be able to click a button, "Re-allocate quota by dividing available client quota across all client mailboxes". Does this make sense? Or am I still missing something?
In my opinion, that might be a function for the tools module.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
courier, dovecot, email, ispconfig, quota

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.