The impurge utility removes messages from the Message Store that are no longer referenced from any user folders, and returns the space to the file system. When a user deletes a message, the reference to the message is also removed. Eventually, all users who received the message may remove their references. When the last reference is gone, the message can be purged from the store.
The purge operation requires a considerable amount of time and system resources. Do not wait until your disk is full before attempting a message purge. Run impurge while there is more disk space than the amount of space used by the message store on the busiest 24 hour period of the message store. You can check the message store disk usage by noting the disk usage increase on the /var/opt/SUNWmail/ims partition over a 24 hour period.
Note - Messages under 2 days old will not get purged.
|
The options for this command are:
The following sample represents a small work group with 500 Mbyte of storage for user mailboxes that has decided to reclaim space every morning, but only if 10 Mbyte or more of disk space can be reclaimed.
% impurge -s 10M
For the next example, assume that a larger work group has 10 Gbyte of storage, and on a typical day 5 Mbyte of new mail is received, although this can vary. For efficiency, the site decides to use impurge every morning, but only if the reclaimed space is half as large as the particular day's mail messages. Using this formula, if that day's traffic is 40 Mbyte, then the impurge for that day must find at least 20 Mbyte to reclaim, or else impurge is skipped. This command line would look like the following:
% impurge -p 50
The percentage stipulation is used for performance reasons, and it would not be worthwhile to purge a day's data if the amount of that data was not significant.
Note - impurge -a will clear the PENDING flag set by imexpire.