When you set a quota for a message type, you include that value in a quota root. A quota root specifies quotas for a user. It can specify different quotas for particular message types and mailbox folders, and it can specify a default quota that applies to all remaining message types, folders, and messages not defined by type.
For complete information about setting and managing quotas, see 20.8.2 Quota Theory of Operations
Before you can set quotas for message types, you must configure the following parameters:
Set the store.messagetype.x.quotaroot parameter for each message type. For details, see To Configure Message Types.
Set the store.typequota.enable parameter to on.
For example, enter the following command:
configutil -o store.typequota.enable -v 1 |
Use one of the following methods to set quotas for message types:
Set message-type quotas for a user with the LDAP attributes mailQuota or mailMsgQuota (or both).
For information about how to set quota roots with these attributes, see the mailQuota and mailMsgQuota entries in Chapter 3, Messaging Server and Calendar Server Attributes, in Sun Java Communications Suite 5 Schema Reference.
Set default message-type quotas that apply to all individual users when the mailQuota and mailMsgQuota attributes are not set.
To set default quotas, use the store.defaultmessagequota or store.defaultmailboxquota parameter (or both).
For information about how to set quota roots with these parameters, see 20.8.4 Configuring Message Store Quotas.
When you set a quota for the message type with a configutil parameter or LDAP attribute shown above, you must use the quota root specified with the store.messagetype.x.quotaroot parameter.
The example described in this section sets the following quotas for the user joe:
The default mailbox storage quota is 40 M
The default mailbox message quota is 5000
The storage quota for the Archive folder is 100M
The storage quota for text message types is 10 M
The message quota for text message types is 2000
The storage quota for voice message types is 10 M
The message quota for voice message types is 200
This quota root permits greater storage in the Archive folder (100 M) than in all the other folders and message types combined (60 M). Also, no message limit is set for the Archive folder; in this example, only storage limits matter for archiving.
The message types have both storage and number-of-message quotas.
The message-type quotas apply to the sum of all messages of those types, whether they are stored in the Archive folder or in any other folder.
The default mailbox quotas apply to all messages that are not text or voice message types and are not stored in the Archive folder. That is, the message-type quotas and Archive quota are not counted as part of the default mailbox quotas.
To set the quota root in this example, you would take the following steps:
Configure the store.messagetype.x.quotaroot parameter as follows:
store.messagetype.1.quotaroot = text store.messagetype.2.quotaroot = voice |
Configure the mailQuota attribute for the user joe as follows:
mailQuota: 20M;#text%10M;#voice%10M;Archive%100M |
Configure the mailMsgQuota attribute for the user joe as follows:
mailMsgQuota: 5000;#text%2000;#voice%200 |
When you run the getquotaroot IMAP command, the resulting IMAP session displays all quota roots for the user joe's mailbox, as shown here:
1 getquotaroot INBOX * QUOTAROOT INBOX user/joe user/joe/#text user/joe/#voice * QUOTA user/joe (STORAGE 12340 20480 MESSAGE 148 5000) * QUOTA user/joe/#text (STORAGE 1966 10240 MESSAGE 92 2000) * QUOTA user/joe/#voice (STORAGE 7050 10240 MESSAGE 24 200) 2 getquotaroot Archive * QUOTAROOT user/joe/Archive user/joe/#text user/joe/#voice * QUOTA user/joe/Archive (STORAGE 35424 102400) * QUOTA user/joe/#text (STORAGE 1966 10240 MESSAGE 92 2000) * QUOTA user/joe/#voice (STORAGE 7050 10240 MESSAGE 24 200) |