{"id":1241,"date":"2014-11-20T02:06:13","date_gmt":"2014-11-19T17:06:13","guid":{"rendered":"http:\/\/tech.akat.info\/?p=1241"},"modified":"2014-11-20T02:06:13","modified_gmt":"2014-11-19T17:06:13","slug":"pflogsumm","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=1241","title":{"rendered":"pflogsumm"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# aptitude install pflogsumm\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  libbit-vector-perl{a} libcarp-clan-perl{a} libdate-calc-perl{a} libdate-calc-xs-perl{a} pflogsumm \r\n\u66f4\u65b0: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 5 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 2 \u500b\u3002\r\n525 k \u30d0\u30a4\u30c8\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5c55\u958b\u5f8c\u306b 1,569 k \u30d0\u30a4\u30c8\u306e\u30c7\u30a3\u30b9\u30af\u9818\u57df\u304c\u65b0\u305f\u306b\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\r\n\u5148\u306b\u9032\u307f\u307e\u3059\u304b? &#x5B;Y\/n\/?] y\r\n...\r\n\r\nroot@hostname:\/home\/shimizu# pflogsumm \/var\/log\/mail.log \r\nGrand Totals\r\n------------\r\nmessages\r\n\r\n      4   received\r\n      0   delivered\r\n      0   forwarded\r\n      0   deferred\r\n      8   bounced\r\n      0   rejected (0%)\r\n      0   reject warnings\r\n      0   held\r\n      0   discarded (0%)\r\n\r\n   3548   bytes received\r\n      0   bytes delivered\r\n      1   senders\r\n      1   sending hosts\/domains\r\n      0   recipients\r\n      0   recipient hosts\/domains\r\n\r\n\r\nPer-Day Traffic Summary\r\n-----------------------\r\n    date          received  delivered   deferred    bounced     rejected\r\n    --------------------------------------------------------------------\r\n    Nov 16 2014         1          0          0          2 \r\n    Nov 17 2014         1          0          0          2 \r\n    Nov 18 2014         1          0          0          2 \r\n    Nov 19 2014         1          0          0          2 \r\n\r\nPer-Hour Traffic Daily Average\r\n------------------------------\r\n    time          received  delivered   deferred    bounced     rejected\r\n    --------------------------------------------------------------------\r\n    0000-0100           0          0          0          0          0 \r\n    0100-0200           0          0          0          0          0 \r\n    0200-0300           0          0          0          0          0 \r\n    0300-0400           0          0          0          0          0 \r\n    0400-0500           0          0          0          0          0 \r\n    0500-0600           0          0          0          0          0 \r\n    0600-0700           1          0          0          2          0 \r\n    0700-0800           0          0          0          0          0 \r\n    0800-0900           0          0          0          0          0 \r\n    0900-1000           0          0          0          0          0 \r\n    1000-1100           0          0          0          0          0 \r\n    1100-1200           0          0          0          0          0 \r\n    1200-1300           0          0          0          0          0 \r\n    1300-1400           0          0          0          0          0 \r\n    1400-1500           0          0          0          0          0 \r\n    1500-1600           0          0          0          0          0 \r\n    1600-1700           0          0          0          0          0 \r\n    1700-1800           0          0          0          0          0 \r\n    1800-1900           0          0          0          0          0 \r\n    1900-2000           0          0          0          0          0 \r\n    2000-2100           0          0          0          0          0 \r\n    2100-2200           0          0          0          0          0 \r\n    2200-2300           0          0          0          0          0 \r\n    2300-2400           0          0          0          0          0 \r\n\r\nHost\/Domain Summary: Message Delivery \r\n--------------------------------------\r\n sent cnt  bytes   defers   avg dly max dly host\/domain\r\n -------- -------  -------  ------- ------- -----------\r\n \r\n Host\/Domain Summary: Messages Received \r\n---------------------------------------\r\n msg cnt   bytes   host\/domain\r\n -------- -------  -----------\r\n      4     3548   mail.akat.info\r\n\r\nSenders by message count\r\n------------------------\r\n      4   root@mail.akat.info\r\n\r\nRecipients by message count: none\r\n\r\nSenders by message size\r\n-----------------------\r\n   3548   root@mail.akat.info\r\n\r\nRecipients by message size: none\r\n\r\nmessage deferral detail: none\r\n\r\nmessage bounce detail (by relay)\r\n--------------------------------\r\n  none (total: 8)\r\n         8   mail for mail.akat.info loops back to myself\r\n\r\nmessage reject detail: none\r\n\r\nmessage reject warning detail: none\r\n\r\nmessage hold detail: none\r\n\r\nmessage discard detail: none\r\n\r\nsmtp delivery failures: none\r\n\r\nWarnings: none\r\n\r\nFatal Errors: none\r\n\r\nPanics: none\r\n\r\nMaster daemon messages: none\r\n\r\n### \u6628\u65e5\u306e\u30ed\u30b0\u3092\u5206\u6790\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# pflogsumm -d yesterday \/var\/log\/mail.log\r\n\r\n### smtpd connection\u306e\u7d71\u8a08\u3092\u8868\u793a\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# pflogsumm --smtpd-stats \/var\/log\/mail.log \r\n\r\n### reject\u3057\u305fIP\u3084\u30db\u30b9\u30c8\u60c5\u5831\u3092\u30ea\u30b9\u30c8\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# pflogsumm --rej-add-from \/var\/log\/mail.log\r\n\r\n### bounce\u30e1\u30fc\u30eb\u306e\u4e0a\u4f4d10\u4ef6\u3092\u8868\u793a\u3059\u308b ###\r\nroot@hostname:\/home\/shimizu# pflogsumm --bounce-detail 10 \/var\/log\/mail.log | lv\r\n\r\n### \u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u8fbc\u307f\u53ef\u80fd ###\r\nroot@hostname:\/home\/shimizu# pflogsumm \/var\/log\/mail.log \/var\/log\/mail.log.1\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>root@hostname:\/home\/shimizu# aptitude install pflogsumm \u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059: libbit-vector-perl{a} libcarp-c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1241"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1241"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1241\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1241\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}