Using the mailstats command

The z/OS UNIX sendmail program provides the ability to gather information that can be used to produce valuable statistics. The StatusFile (S) option is used to specify a statistics file into which delivery agent statistics can be saved. The Mailstats program prints a summary of those statistics by printing the statistics file.