Exim: pflogsumm – статистика работы почтового сервера

Автор: | 14/07/2014
 

exim_logoУдобная утилита (скрипт на Perl-е) для подсчёта статистики работы почтового сервера.

Установка:

# cd /opt/
# wget http://jimsun.linxnet.com/downloads/pflogsumm-1.1.1.tar.gz
# tar xfp pflogsumm-1.1.1.tar.gz
# ls -l
total 184
drwxr-xr-- 2 332 daemon 512 Apr 6 2007 pflogsumm-1.1.1
-rw-r--r-- 1 root wheel 44627 Apr 6 2007 pflogsumm-1.1.1.tar.gz
# chown root:root pflogsumm-1.1.1
# cd pflogsumm-1.1.1

Запускаем:

#  ./pflogsumm.pl /var/log/maillog | tee -a eximstat.log

В результате получаем море информации:

Grand Totals
------------
messages

      1   received
      1   delivered
      0   forwarded
      1   deferred  (107  deferrals)
      0   bounced
      0   rejected (0%)
      0   reject warnings
      0   held
      0   discarded (0%)

   1106   bytes received
   3220   bytes delivered
      1   senders
      1   sending hosts/domains
      1   recipients
      1   recipient hosts/domains


Per-Day Traffic Summary
    date          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    Jul  6 2014         1          0         10
    Jul  7 2014         0          0         21
    Jul  8 2014         0          0         20
    Jul  9 2014         0          0         21
    Jul 10 2014         0          0         20
    Jul 11 2014         0          1         15

Per-Hour Traffic Daily Average
    time          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    0000-0100           0          0          1          0          0
    0100-0200           0          0          1          0          0
    0200-0300           0          0          1          0          0
    0300-0400           0          0          1          0          0
    0400-0500           0          0          1          0          0
    0500-0600           0          0          1          0          0
    0600-0700           0          0          1          0          0
    0700-0800           0          0          1          0          0
    0800-0900           0          0          1          0          0
    0900-1000           0          0          1          0          0
    1000-1100           0          0          1          0          0
    1100-1200           0          0          1          0          0
    1200-1300           0          0          1          0          0
    1300-1400           0          0          1          0          0
    1400-1500           0          0          1          0          0
    1500-1600           0          0          1          0          0
    1600-1700           0          0          1          0          0
    1700-1800           0          0          1          0          0
    1800-1900           0          0          1          0          0
    1900-2000           0          0          1          0          0
    2000-2100           0          0          1          0          0
    2100-2200           0          0          1          0          0
    2200-2300           0          0          1          0          0
    2300-2400           0          0          1          0          0

Host/Domain Summary: Message Delivery
 sent cnt  bytes   defers   avg dly max dly host/domain
 -------- -------  -------  ------- ------- -----------
      1     3220        0     0.4 s    0.4 s  venti.domain.org.ua
      0        0      107     0.0 s  120.3 h  domain.kiev.ua

Host/Domain Summary: Messages Received
 msg cnt   bytes   host/domain
 -------- -------  -----------
      1     1106   venti.domain.org.ua

Senders by message count
------------------------
      1   [email protected]

Recipients by message count
---------------------------
      1   [email protected]

Senders by message size
-----------------------
   1106   [email protected]

Recipients by message size
--------------------------
   3220   [email protected]

message deferral detail
-----------------------
  smtp (total: 107)
       107   Domain not found (in reply to RCPT TO command