imquotacheck

imquotacheck, the Quota Notification utility, calculates the total mailbox size for each user in the message store, compares the size with their assigned quota, and sends a notification via email to the users that have exceeded a set percentage of their assigned quota.

The default percentage used to determine quota is exactly 90%. The -p option may be used to specify a different percentage.

If the -v or -u options are not specified, imquotacheck displays only the users who have exceeded the quota.

imquotacheck must be run as the message store owner as specified in the ims.cnf file. The default owner should be set to inetmail.


Note - The content of the quota notification message cannot be changed.

Syntax

 
imquotacheck [-v] [-n] [-p percentage] [-u username] \ 
[-l config_file_location]
 

The following options are used with imquotacheck:

-v  

Verbose mode. Prints the username, quota, total mailbox size, and percentage used of all users to stdout. If the -u option is specified, imquotacheck prints the statistics for the specified user only.  

-n  

Does not send notification to the users. Prints notification to stdout only.  

-p percentage  

Send a notification if the total mailbox size exceeds a specified percentage of the assigned quota.  

-u username  

Executes imquotacheck on a specified user. The user is displayed even if the quota has not been exceeded.  

-l config_file_location  

Location of Message Access Services configuration file (ims.cnf). If the -l option is not specified, the default location (/etc/opt/SUNWmail/ims/) will be used.  


Examples

The following command sends a notification to all users that have a mailbox size greater than 80% of their assigned quota limit:

 
% imquotacheck -p 80
 

The following command checks the quota usage for each user in the message store without sending notification to the users:

 
% imquotacheck -v -n
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.