postfix-perl-scriptsインストール


[root@falcon21 ~]# yum -y install postfix-perl-scripts
インストール済み:
  perl-Bit-Vector-7.4-11.el8.x86_64            perl-Carp-Clan-6.06-6.el8.noarch
  perl-Date-Calc-6.4-9.el8.noarch              postfix-perl-scripts-2:3.3.1-12.el8.x86_64

完了しました!



コマンド実行

[root@falcon21 ~]# perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog
Postfix log summaries for Nov 19

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

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

   1519   bytes received
   1519   bytes delivered
      1   senders
      1   sending hosts/domains
      1   recipients
      1   recipient hosts/domains


Per-Hour Traffic Summary
------------------------
    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           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           1          1          0          0          0

Host/Domain Summary: Message Delivery
--------------------------------------
 sent cnt  bytes   defers   avg dly max dly host/domain
 -------- -------  -------  ------- ------- -----------
      1     1519        0     0.1 s    0.1 s  falcon21.space

Host/Domain Summary: Messages Received
---------------------------------------
 msg cnt   bytes   host/domain
 -------- -------  -----------
      1     1519   car.ocn.ne.jp

Senders by message count
------------------------
      1   ni2430@car.ocn.ne.jp

Recipients by message count
---------------------------
      1   hayato@falcon21.space

Senders by message size
-----------------------
   1519   ni2430@car.ocn.ne.jp

Recipients by message size
--------------------------
   1519   hayato@falcon21.space

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
--------
  anvil (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  cleanup (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  local (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  master (total: 2)
         2   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  pickup (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  postfix (total: 2)
         2   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  postlog (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  postsuper (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  qmgr (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  smtpd (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  tlsmgr (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...
  trivial-rewrite (total: 1)
         1   /etc/postfix/main.cf, line 708: overriding earlier entry: smtpd...

Fatal Errors: none

Panics: none

Master daemon messages
----------------------
      1   daemon started -- version 3.3.1, configuration /etc/postfix



 クロン設定・

root@falcon21 ~]# crontab -e
00 01 * * * perl /usr/sbin/pflogsumm -e -d yesterday /var/log/maillog | mail -s 'Logwatch for Postfix' root 

 メール受信 ・・・

***********************************************************************
  
投票数:1 平均点:10.00

 
Back to Top