Debian 8 Jessie
Sponsored Link

Mail Log Analyzer : pflogsumm2015/05/15

  Install pflogsumm that is Postfix mail log analyzer.
root@mail:~#
aptitude -y install pflogsumm
# generate log summary for yesterday

root@mail:~#
perl /usr/sbin/pflogsumm -d yesterday /var/log/mail.log
Postfix log summaries for May 17

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

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

  13154   bytes received
  15133   bytes delivered
      1   senders
      1   sending hosts/domains
      2   recipients
      2   recipient hosts/domains


Per-Hour Traffic Summary
------------------------
    time          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    0000-0100           0          0          0          0          0
    0100-0200          13         10          3          1          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           0          0          0          0          0
    0900-1000           0          0          0          0          0
    1000-1100           0          0          0          0          0
    1100-1200           0          0          0          0          0
    1200-1300           0          0          0          0          0
    1300-1400           0          0          0          0          0
    1400-1500           0          0          0          0          0
    1500-1600           0          0          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
 -------- -------  -------  ------- ------- -----------
      9    13908        3     2.2 m    7.3 m  mail.srv.world
      1     1225        0     0.1 s    0.1 s  srv.world

Host/Domain Summary: Messages Received
---------------------------------------
 msg cnt   bytes   host/domain
 -------- -------  -----------
     10    13154   mail.srv.world

Senders by message count
------------------------
     10   debian@mail.srv.world

Recipients by message count
---------------------------
      9   debian@mail.srv.world
      1   debian@srv.world

Senders by message size
-----------------------
  13154   debian@mail.srv.world

Recipients by message size
--------------------------
  13908   debian@mail.srv.world
   1225   debian@srv.world

message deferral detail
-----------------------
  smtp (total: 3)
         3   Local Error (in reply to end of DATA command

message bounce detail (by relay)
--------------------------------
  none (total: 1)
         1   Host not found

message reject detail: none

message reject warning detail: none

message hold detail: none

message discard detail: none

smtp delivery failures: none

Warnings
--------
  smtpd (total: 1)
         1   non-SMTP command from localhost[127.0.0.1]: Message-ID: 
root@mail:~#
# send mail log summary at AM 1:00 everyday to root

00 01 * * * perl /usr/sbin/pflogsumm -e -d yesterday /var/log/mail.log | mail -s 'Logwatch for Postfix' root
Matched Content