pflogsumm

Summarize Postfix MTA Log File Entries

pflogsumm is a Perl script designed to provide an overview of Postfix
MTA activity, meant to provide just enough detail to give the
administrator a “heads up” for potential trouble spots.

Features

The following is a summary of the reports produced:

-   Total number of:
    -   Messages received, delivered, forwarded, deferred, bounced,
        rejected, etc.
    -   Bytes in messages received and delivered
    -   Sending and Recipient Hosts/Domains
    -   Senders and Recipients
    -   Optional SMTPD totals for number of connections, number of
        hosts/domains connecting, average connect time and total connect
        time
-   Per-Day Traffic Summary (for multi-day logs)
-   Per-Hour Traffic (daily average for multi-day logs)
-   Optional Per-Hour and Per-Day SMTPD and Postscreen connection
    summaries
-   Sorted in descending order:
    -   Recipient Hosts/Domains by message count, including:
        -   Number of messages sent to recipient host/domain
        -   Number of bytes in messages
        -   Number of defers
        -   Average delivery delay
        -   Maximum delivery delay
    -   Sending Hosts/Domains by message and byte count
    -   Optional Hosts/Domains SMTPD connection summary
    -   Senders by message count
    -   Recipients by message count
    -   Senders by message size
    -   Recipients by message size with an option to limit these reports
        to the top N.
-   A Semi-Detailed Summary of:
    -   Messages deferred
    -   Messages bounced
    -   Messages rejected
-   Optional summary and details of postscreen activity
-   Summaries of warnings, fatal errors, and panics
-   Summary of master daemon messages
-   Optional detail of messages received, sorted by domain, then
    sender-in-domain, with a list of recipients-per-message.
-   Optional output of “mailq” run

pflogsumm has extensive configuration options to allow you to tailor its
reports to suit.

Requirements

-   Perl 5.10 or later
-   Date::Calc (Debian/Ubuntu: libdate-calc-perl, RHEL/Fedora:
    perl-Date-Calc)
-   Config::Simple (Debian/Ubuntu: libconfig-simple-perl, RHEL/Fedora:
    perl-Config-Simple) (If you wish to use the optional configuration
    file support)

License

pflogsumm is licensed under the GNU General Public License, Version 2 or
later. See the LICENSE file for details.
