Date: Tue, 1 Aug 2006 04:29:06 GMT From: Darren Pilgrim <darren.pilgrim@bitfreak.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/101137: mail/pflogsumm is broken for postfix 2.3.1; fix update included Message-ID: <200608010429.k714T6wv037314@www.freebsd.org> Resent-Message-ID: <200608010430.k714UEFC054189@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101137 >Category: ports >Synopsis: mail/pflogsumm is broken for postfix 2.3.1; fix update included >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Aug 01 04:30:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Darren Pilgrim >Release: HEAD >Organization: none >Environment: n/a >Description: Changes to the format of the Postfix log data were made sometime between 2.3 and 2.3.1 that break pflogsumm. Specifically, pflogsumm omits the delivered and deferred counts and other important data, making its output non-useful. >How-To-Repeat: Run the stock (port-patched) pflogsumm against log data produced by 2.3.1 and see it report 100% rejection and other creative analysis. >Fix: The patch below is the FreeBSD-style unified diff equivalent of the pflogsumm patch included with the postfix 2.3.1 distribution tarball. The following patch is a drop-in replacement for files/patch-pflogsumm: --- pflogsumm.pl.orig Fri Dec 12 06:40:19 2003 +++ pflogsumm.pl Mon Jul 31 19:25:43 2006 @@ -696,7 +696,7 @@ } } elsif((($addr, $relay, $delay, $status, $toRmdr) = $logRmdr =~ - /to=<([^>]*)>, (?:orig_to=<[^>]*>, )?relay=([^,]+), delay=([^,]+), status=(\S+)(.*)$/o) >= 4) + /to=<([^>]*)>, (?:orig_to=<[^>]*>, )?relay=([^,]+), (?:conn_use=[^,]+, )?delay=([^,]+), (?:delays=[^,]+, )?(?:dsn=[^,]+, )?status=(\S+)(.*)$/o) >= 4) { if($opts{'m'} && $addr =~ /^(.*!)*([^!]+)!([^!@]+)@([^\.]+)$/o) { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608010429.k714T6wv037314>