ports/101137: mail/pflogsumm is broken for postfix 2.3.1; fix update included

Darren Pilgrim darren.pilgrim at bitfreak.org
Tue Aug 1 04:30:15 UTC 2006


>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:



More information about the freebsd-ports-bugs mailing list