-f

-f

Specify another name for the statistics file mailstats command-line switch

Ordinarily, mailstats gathers the path to, and the name for, its statistics file from the sendmail configuration file. There will be times, however, when you will need to print statistics from information in another statistics file. Consider, for example, the desire to archive statistics files weekly for several years running. In such a scenario, you might run the following command to look at a statistics file from last year:

 %  mailstats -f /export/mail/archives/statsV3/1999/Dec/stat.25  

But be aware that sendmail periodically updates the version of the statistics file. If you use the current version of mailstats to read an older version's statistics file, you will get an error something like this:

 %  mailstats -f /etc/sendmail.st   mailstats version (3) incompatible with /etc/sendmail.st version (2)  

If you archive statistics files, you should also archive versions of mailstats with which to read them.



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net