iminitquota

The iminitquota utility reinitializes the quota limit from the specified user's LDAP directory entry and recalculates the total amount of disk space that is being used by the specified user. It updates the file quota under the user's Adm directory in the Message Store. This file will be read by the delivery agent when trying to determine if a certain user is over-quota.

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


Note - When the -a option is specified, iminitquota uses the MTA.hostname value specified in the /etc/opt/SUNWmail/admin/adminserver.properties configuration file as the mailHost attribute to search for local message store users in the LDAP directory.

Syntax

 
iminitquota [-l config_file_location] -a | -u username
 

The options for this command are:

-a  

Initializes and updates the user quota files for every message store user on the server. You must specify either the -a or -u option.  

-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.  

-u username  

Reinitialize the quota -elated information for this user. You must specify either the -a or -u option.  


Example

The following example requests quotas information for a user named "Jane."

 
# iminitquota -u Jane@XYZ.com
 

One of the following exit status codes from sysexits.h is returned:

EX_OK  

Normal exit. Quota information successfully updated for the specified user.  

EX_USAGE  

The command line usage was incorrect.  

EX_NOUSER  

The specified user does not exist in the message store.  

EX_SOFTWARE  

iminitquota failed because of unexpected software error. This usually means fail to access the users's LDAP entry.  

EX_OSERR  

An operating system error occurred during the iminitquota process, most commonly out of virtual memory.  

EX_CONFIG  

Mail server configuration error. This usually means that the store has not been initialized.  




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