Книга: Linux Network Administrator Guide, Second Edition
mailstats
mailstats
The mailstats command displays statistics on the volume of mail processed by sendmail. The time at which data collection commenced is printed first, followed by a table with one row for each configured mailer and one showing a summary total of all mail. Each line presents eight items of information:
Field | Meaning |
---|---|
M | The mailer (transport protocol) number |
msgsfr | The number of messages received from the mailer |
bytes_from | The Kbytes of mail from the mailer |
msgsto | The number of messages sent to the mailer |
bytes_to | The Kbytes of mail sent to the mailer |
msgsreg | The number of messages rejected |
msgsdis | The number of messages discarded |
Mailer | The name of the mailer |
A sample of the output of the mailstats command is shown in Example 18.5.
Example 18.5: Sample Output of the mailstats Command
# /usr/sbin/mailstats
Statistics from Sun Dec 20 22:47:02 1998
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
0 0 0K 19 515K 0 0 prog
3 33 545K 0 0K 0 0 local
5 88 972K 139 1018K 0 0 esmtp
=============================================================
T 121 1517K 158 1533K 0 0
This data is collected if the StatusFile option is enabled in the sendmail.cf file and the status file exists. Typically you'd add the following to your sendmail.cf file:
# status file
O StatusFile=/var/log/sendmail.st
To restart the statistics collection, you need to make the statistics file zero length:
› /var/log/sendmail.st
and restart sendmail.
- 8.3. Полезные команды
- 6.3.2. Процедура сбора качественных данных
- Глава 2 Табличный редактор Microsoft Excel
- «Плиточные» структуры и квазикристаллы
- 16.13 Формат сообщений MIME
- Как уразуметь свою техническую роль и придерживаться ее
- Отправка запроса
- Build a Run-Time Image for an OS Design
- Как отвечать на письма, полученные вашей организацией