Инструменты пользователя

Инструменты сайта


postfix_stat

Статистика Postfix

Есть замечательный скрипт для анализа maillog (лога отправки сообщений Postfix).

# cd /usr/local/bin
# wget http://jimsun.linxnet.com/downloads/pflogsumm-1.1.1.tar.gz
# tar zxfv pflogsumm-1.1.1.tar.gz
# cd pflogsumm-1.1.1/
# cat /var/log/maillog | ./pflogsumm.pl

В результате работы:

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

     64   received
     64   delivered
      0   forwarded
      0   deferred
      0   bounced
      0   rejected (0%)
      0   reject warnings
      0   held
      0   discarded (0%)

 264666   bytes received
 264666   bytes delivered
      2   senders
      2   sending hosts/domains
      3   recipients
      3   recipient hosts/domains


Per-Day Traffic Summary
    date          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    Jun 26 2016         1          1 
    Jun 27 2016        12         12 
    Jun 28 2016        11         11 
    Jun 29 2016        16         16 
    Jun 30 2016        22         22 
    Jul  1 2016         2          2 

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

Host/Domain Summary: Message Delivery 
 sent cnt  bytes   defers   avg dly max dly host/domain
 -------- -------  -------  ------- ------- -----------
     42   175138        0     0.6 s    1.7 s  stty.ru
     21    88177        0     0.7 s    1.3 s  gmail.com
      1     1351        0     1.3 s    1.3 s  mail.ru

Host/Domain Summary: Messages Received 
 msg cnt   bytes   host/domain
 -------- -------  -----------
     63   263315   stty.ru
      1     1351   986532.ru

Senders by message count
------------------------
     63   noreply@stty.ru
      1   info@domain.com

Recipients by message count
---------------------------
     42   get@stty.ru
     21   _mail1@gmail.com
      1   _mail2@mail.ru

Senders by message size
-----------------------
 263315   get@stty.ru
   1351   _mail1@gmail.com

Recipients by message size
--------------------------
 175138   get@stty.ru
  88177   _mail1@gmail.com
   1351   _mail2@gmail.com

message deferral detail: none

message bounce detail (by relay): none

message reject detail: none

message reject warning detail: none

message hold detail: none

message discard detail: none

smtp delivery failures: none

Warnings: none

Fatal Errors: none

Panics: none

Master daemon messages: none
postfix_stat.txt · Последние изменения: 2016/07/01 09:52 — Alex