Purge utility

Purge MTA log files.

Syntax
imsimta purge &#x5b;file-pattern&#x5d;

A file name pattern for which MTA log files to purge. The default, if no file name pattern is specified, is to purge all the files  in the MTA log directory. (The MTA log directory has symbolic name IMTA_LOG:, which is the directory DATAROOT . If no directory path is included in the file  name pattern, the default is to purge files matching the file name  pattern from the MTA log directory.

IMPORTANT NOTE: imsimta knows nothing about the specifics of the log files it operates on; it uses generic file name patterns which can effect ANY file in the log directory. As such, administrators MUST avoid creating their own files in the log directory - whether that be a rename of logs the product creates, any derivative material from the logs (parsing output, tar, zip, ... any), or anything completely unrelated - putting it in the log directory is unsupported and may produce unexpected results.

If you want to do your own parsing and archiving of the logs,then that is fine, but make sure you put the results into some other directory.

As of 8.0.1.2, imsimta purge unconditionally ignores the connection and transaction log files mail.log, mail.log_current, and mail.log_yesderday and connection log files connection.log, connection.log_current, and connection.log_yesterday. Files with names beginning with "." are also ignored.

Description
purges back older versions of MTA log files. ( can tell which log files are older based on  the   strings terminating MTA log file names.)

Specifying   results in purging all but the  last   days worth of log files. Note that here "day" means a 24 hour period, rather than a calendar day  (midnight to midnight); i.e., all but the log files created in  the last 24  hours will be purged.

Specifying  enables some debug output to stdout.

Specifying   results in purging all but the  last   hours worth of log files.

Specifying   results in purging all but the  last   log files. The default is.

Examples
This UNIX command will purge all but the last five versions of each sort of log file in the MTA log directory,. This UNIX command will purge all but the last ten versions of any   files from the MTA log directory,   .
 * 1) imsimta purge
 * 1) imsimta purge -num=10 tcp_local_master.log

See also:
 * MTA command line utilities