From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 1 04:30:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3265A16A4E1 for ; Tue, 1 Aug 2006 04:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5449543D55 for ; Tue, 1 Aug 2006 04:30:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k714UECw054195 for ; Tue, 1 Aug 2006 04:30:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k714UEFC054189; Tue, 1 Aug 2006 04:30:14 GMT (envelope-from gnats) Resent-Date: Tue, 1 Aug 2006 04:30:14 GMT Resent-Message-Id: <200608010430.k714UEFC054189@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Darren Pilgrim Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F4B316A4DE for ; Tue, 1 Aug 2006 04:29:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B71843D4C for ; Tue, 1 Aug 2006 04:29:07 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k714T6ap037315 for ; Tue, 1 Aug 2006 04:29:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k714T6wv037314; Tue, 1 Aug 2006 04:29:06 GMT (envelope-from nobody) Message-Id: <200608010429.k714T6wv037314@www.freebsd.org> Date: Tue, 1 Aug 2006 04:29:06 GMT From: Darren Pilgrim To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/101137: mail/pflogsumm is broken for postfix 2.3.1; fix update included X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2006 04:30:15 -0000 >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: