|
Prev: Recepients see my email address as adam@localhost.mydomain.cominstead of adam@mydomain.com
Next: How to find user with invalid .forward email address?
From: swu30 on 23 Jan 2007 12:45 Hi Greg - I FINALLY got around to applying the patch and running pflogsumm against some recent maillog files. I still get stats that don't add up or look entirely right. v 2.3-20060112 of postfix. Any other ideas? Thx - Steve es-as-01# patch pflogsumm.pl < pflogsumm-conn-delays-dsn-patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |This patch adds support for logfiles with conn_use, delays, and dsn |attributes. | |--- pflogsumm.pl.orig 2005-04-09 12:54:44.000000000 +0200 |+++ pflogsumm.pl 2005-11-07 21:50:05.483199193 +0100 -------------------------- Patching file pflogsumm.pl using Plan A... Hunk #1 succeeded at 696. done Grand Totals ------------ messages 3472 received 0 delivered 0 forwarded 0 deferred 0 bounced 2774 rejected (100%) 0 reject warnings 0 held 0 discarded (0%) 87938k bytes received 0 bytes delivered 766 senders 471 sending hosts/domains 0 recipients 0 recipient hosts/domains Per-Hour Traffic Summary time received delivered deferred bounced rejected -------------------------------------------------------------------- 0000-0100 62 0 0 0 52 0100-0200 65 0 0 0 40 0200-0300 62 0 0 0 272 ************************************************************************************** Greg Hackney wrote: > swu30(a)hotmail.com wrote: > > > Sorry, but I'm a bit lost here. Am I apply a patch to pflogsumm or > > Postfix? > > As it says at the top of the patch snippet that was included, it's > a patch for the pflogsumm.pl perl script. > > The way to apply it, is to save the content of that netnews posting > that contains the patch into a file (text and all). > > Then run this command (using the correct directory paths for the files): > > patch pflogsumm.pl < file > > The reason the patch is necessary is because the later versions of > Postfix have additional fields in the syslog output (delay, conn, > and dsn fields). However, the 3rd party pflogsumm program has > not kept up to date with the Postfix revisions. > > > > At the top of the source code page for Postfix are the Postfix 2.3 > > Patch Level 5... Am I in the wrong spot looking for the wrong thing? > > You don't need the Postfix source code package if all you want > to do is fix pflogsumm. But if you want it for reference: > > Get the source code tar file: > ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.3.5.tar.gz > > Unbundle it into /usr/local/src: > cd /usr/local/src > tar -xzvf postfix-2.3.5.tar.gz > > The patch file will then be located in: > /usr/local/src/postfix-2.3.5/pflogsumm-conn-delays-dsn-patch > > -- > Greg |