JES COStemplates Mail Quotas Greater than 4GB

Posted November 7, 2005 by Quinn McHenry in UNIX software

Sun’s Java Enterprise System mail facilities have the capacity to provision users based on predefined classes of service (COS) which specify the types of services a user assigned to that COS can use, their mailbox size quota, number of message quota, and per message size quota. However, because the mailQuota attribute is stored as a 32-bit integer, the maximum value is 4,294,967,295 bytes (4GB). This tech-recipe describes a way around this limit.


Faced with a client who wanted to set a limit on emails but needed a limit larger than 4GB, I started digging around. I found a reference to this that it will accept values for quotas in a unit format as well. Valid units are K for kilobyte, M for megabyte, and G for gigabyte. For example, to set a 10 GB quota, use

mailQuota: 10G

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.