V8.9
and above sendmail also show the number of rejected messages (msgsrej) and discarded
messages (msgsdis). V8.13 and above also show the number of quarantined
messages (msgsqur). The M column shows the index into the internal array of delivery
agents, and the Mailer column shows the symbolic name. Note that if a delivery
agent handled no traffic, it is excluded from the report.
The last two lines show totals. The line that begins with T shows the totals for the
columns above. The line that begins with C shows totals for connections, the corresponding
daemon-accept connections (inbound), client connections (outbound), and
rejected connections. The two can show different totals when there are multiple
envelopes per connection.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
366 | Chapter 10: Build and Use Companion Programs
Command-line arguments are available to modify this output. We describe them
beginning in ?§10.4.4 on page 367.
10.4.3 Using cron for Daily and Weekly Statistics
The mailstats program prints the contents of the statistics file, but it does not zero
(clear) the counters in that file. To zero that file, you need to truncate it. One easy
way to do this is:
# cp /dev/null /etc/mail/statistics
When sendmail discovers an empty statistics file, it begins gathering statistics all over
again.
Pages:
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662