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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Darren Pilgrim-2

>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:
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

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

Edwin Groothuis-2
Synopsis: mail/pflogsumm is broken for postfix 2.3.1; fix update included

Responsible-Changed-From-To: freebsd-ports-bugs->erwin
Responsible-Changed-By: edwin
Responsible-Changed-When: Tue Aug 1 04:30:22 UTC 2006
Responsible-Changed-Why:
Over to maintainer

http://www.freebsd.org/cgi/query-pr.cgi?pr=101137
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"