From: Sven Hoexter Date: Wed, 29 Apr 2026 18:13:14 +0000 (+0200) Subject: New upstream version 1.2.1 X-Git-Tag: upstream/1.2.1^0 X-Git-Url: https://git.sven.stormbind.net/?a=commitdiff_plain;h=5aa1ac54d9464c088a3d27b841fb1a9a8402e23a;p=sven%2Fpflogsumm.git New upstream version 1.2.1 --- diff --git a/ChangeLog b/ChangeLog index 110f13d..4bae110 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,32 @@ ChangeLog for pflogsumm feed for update notifications.] +rel-1.2.1 20260422 + + This release begins the next Beta cycle following the 1.2.0 Production + release. + + Minor reject messages improvement: Now includes client domain or IP + address in "Sender address rejected..." reports and --rej-add-to will + add the intended destination address. + +rel-1.2.0 20260422 + + This release promotes 1.1.15 from Beta to Production status; no code + changes have been made since that version. + + The changes since 1.1.6, the last Production release, are substantive, + including: + + - Config-file support + - Enhanced TLS reporting + - Improved parsing accuracy + - Codebase refactoring for improved maintainability and robustness + - Numerous usability improvements + + The only other difference with this release is the addition of a + LICENSE file. + rel-1.1.15 20260313 Breaking Changes @@ -53,8 +79,8 @@ rel-1.1.15 20260313 Added --ssl-tls-stats to report - • SMTP TLS stats - • SMTPD TLS/SSL errors + - SMTP TLS stats + - SMTPD TLS/SSL errors by remote host. @@ -66,7 +92,7 @@ rel-1.1.15 20260313 Several reports (messages expired, deferrals, others) now list only FQDNs, rather than FQDNs and associated IP addresses, for reduced noise. - Major refactoring—eliminating no-op branches, duplicated code, + Major refactoring--eliminating no-op branches, duplicated code, questionable logic, and streamlining many regular expressions. Extensive regression testing revealed no change in report output beyond what's noted above. @@ -269,7 +295,7 @@ rel-1.1.8 20250525 I *suspect* that, with an earlier fix I applied, that undefined value will no longer occur, but this fix certainly won't hurt - anything—just in case. + anything--just in case. Added -srs-mung option. Thanks and a tip o' the hat to Tom Hendrikx (tom-at-whyscreem-dot-net) for the contribution. @@ -367,7 +393,7 @@ rel-1.1.6 20250522 Now matches "traditional" log date strings with either leading space or leading zero on single-digit days. (Debian bug report 1068425) - Improvement to "unprocessed" debugging code—used for maintenance only. + Improvement to "unprocessed" debugging code--used for maintenance only. rel-1.1.5 20120205 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..41a1ccf --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ + + LICENSE + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You may have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + USA. + + An on-line copy of the GNU General Public License can be found + http://www.fsf.org/copyleft/gpl.html. + diff --git a/pffrombyto.1 b/pffrombyto.1 index f868169..ecba53e 100644 --- a/pffrombyto.1 +++ b/pffrombyto.1 @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "PFFROMBYTO 1" -.TH PFFROMBYTO 1 2025-05-22 1.1.15 "User Contributed Perl Documentation" +.TH PFFROMBYTO 1 2025-05-22 1.2.1 "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/pflogsumm b/pflogsumm index 7e6fe96..40bb5a1 100755 --- a/pflogsumm +++ b/pflogsumm @@ -6,7 +6,7 @@ eval 'exec perl -S $0 "$@"' pflogsumm - Produce Postfix MTA logfile summary -Copyright (C) 1998-2025 by James S. Seymour, Release 1.1.15 +Copyright (C) 1998-2026 by James S. Seymour, Release 1.2.1 =head1 SYNOPSIS pflogsumm [--config ] [--bounce-detail ] [--colwidth ] @@ -581,7 +581,7 @@ eval { require Config::Simple }; my $haveConfigSimple = $@ ? 0 : 1; my $mailqCmd = "mailq"; -my $release = "1.1.15"; +my $release = "1.2.1"; # Used for regression testing, so new features can be selectively # disabled. @@ -2658,8 +2658,13 @@ sub proc_smtpd_reject { if($rejReas =~ m/^Sender address rejected:/) { # Sender address rejected: Domain not found # Sender address rejected: need fully-qualified address - my $rejData = $from; - $rejData .= " ($to)" if($opts{'rej-add-to'} && $to); + my $rejData; + $rejData = gimme_domain($rejFrom) if $rejFrom; + if($opts{'rej-add-to'}) { + $rejData .= " ($from -> $to)" if($opts{'rej-add-to'} && $to); + } else { + $rejData .= " (<$from)"; + } ++$rejects->{$rejTyp}{$rejReas}{$rejData}; } elsif($rejReas =~ m/^(Recipient address rejected:|User unknown( |$))/) { # Recipient address rejected: Domain not found diff --git a/pflogsumm.1 b/pflogsumm.1 index ae8ec55..1d9f392 100644 --- a/pflogsumm.1 +++ b/pflogsumm.1 @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "PFLOGSUMM 1" -.TH PFLOGSUMM 1 2026-03-13 1.1.15 "User Contributed Perl Documentation" +.TH PFLOGSUMM 1 2026-04-22 1.2.1 "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -63,7 +63,7 @@ .SH NAME pflogsumm \- Produce Postfix MTA logfile summary .PP -Copyright (C) 1998\-2025 by James S. Seymour, Release 1.1.15 +Copyright (C) 1998\-2026 by James S. Seymour, Release 1.2.1 .SH "SYNOPSIS pflogsumm [\-\-config ] [\-\-bounce\-detail ] [\-\-colwidth ] [\-d|\-\-date\-range ] [\-\-deferral\-detail ] [\-\-detail ] [\-\-dow0mon] [\-e|\-\-extended\-detail] [\-\-expired\-detail ] [\-h|\-\-host\-cnt ] [\-i|\-\-ignore\-case] [\-\-iso\-date\-time] [\-m|\-\-uucp\-mung] [\-\-mailq] [\-\-no\-no\-msg\-size] [\-\-problems\-first] [\-\-pscrn\-detail ] [\-\-pscrn\-stats] [\-q|\-\-quiet] [\-\-rej\-add\-from] [\-\-rej\-add\-to] [\-\-reject\-detail ] [\-\-smtpd\-stats] [\-\-srs\-mung] [\-\-ssl\-tls\-stats] [\-\-syslog\-name ] [\-u|\-\-user\-cnt ] [\-\-unprocd\-file ] [\-\-use\-orig\-to] [\-\-verbose\-msg\-detail] [\-\-verp\-mung [n]] [\-\-warning\-detail ] [\-x|\-\-debug ] [\-\-zero\-fill] [file1 [filen]]" .IX Header "SYNOPSIS pflogsumm [--config ] [--bounce-detail ] [--colwidth ] [-d|--date-range ] [--deferral-detail ] [--detail ] [--dow0mon] [-e|--extended-detail] [--expired-detail ] [-h|--host-cnt ] [-i|--ignore-case] [--iso-date-time] [-m|--uucp-mung] [--mailq] [--no-no-msg-size] [--problems-first] [--pscrn-detail ] [--pscrn-stats] [-q|--quiet] [--rej-add-from] [--rej-add-to] [--reject-detail ] [--smtpd-stats] [--srs-mung] [--ssl-tls-stats] [--syslog-name ] [-u|--user-cnt ] [--unprocd-file ] [--use-orig-to] [--verbose-msg-detail] [--verp-mung [n]] [--warning-detail ] [-x|--debug ] [--zero-fill] [file1 [filen]]" .Vb 1 diff --git a/pftobyfrom.1 b/pftobyfrom.1 index e26668a..46ea7b0 100644 --- a/pftobyfrom.1 +++ b/pftobyfrom.1 @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "PFTOBYFROM 1" -.TH PFTOBYFROM 1 2025-05-22 1.1.15 "User Contributed Perl Documentation" +.TH PFTOBYFROM 1 2025-05-22 1.2.1 "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l