Package: pflogsumm
Version: 1.1.0-3
Severity: wishlist

Hi,

When using postfix with postgrey, pflogsumm separates out all of the
RCPT reject lines with different amounts of time, for example:

    Recipient address rejected: Greylisted for 100 seconds (see http (total: 1)
           1   [EMAIL PROTECTED]
    Recipient address rejected: Greylisted for 102 seconds (see http (total: 1)
           1   [EMAIL PROTECTED]
    [lots more]

It's nicer (for me at least) if these are gathered together, e.g.

    Recipient address rejected: Greylisted (see http (total: 3029)
         105   [EMAIL PROTECTED]
          68   [EMAIL PROTECTED]
   [not as much more]

and here is a patch that works for me:

diff -ur pflogsumm-1.1.0/pflogsumm.pl grey/pflogsumm.pl
--- pflogsumm-1.1.0/pflogsumm.pl        2006-04-25 21:55:08.000000000 +0100
+++ grey/pflogsumm.pl   2006-04-25 21:57:07.000000000 +0100
@@ -1511,6 +1511,7 @@
            $rejReas =~ s/^(?:.*?[:;] )(?:\[[^\]]+\] )?([^;,]+)[;,].*$/$1/o;
            $rejReas =~ s/^((?:Sender|Recipient) address rejected: 
[^:]+):.*$/$1/o;
            $rejReas =~ s/(Client host|Sender address) .+? blocked/blocked/o;
+           $rejReas =~ s/^(Recipient address rejected: Greylisted) for \d+ 
seconds/$1/o;
        } elsif($rejTyp eq "MAIL") {    # *more* special treatment :-( grrrr...
            $rejReas =~ s/^\d{3} (?:<.+>: )?([^;:]+)[;:]?.*$/$1/o;
        } else {

Thanks,
  Brian

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i486)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-486
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages pflogsumm depends on:
ii  libdate-calc-perl             5.4-4      Perl library for accessing dates
ii  perl [perl5]                  5.8.8-4    Larry Wall's Practical Extraction 

pflogsumm recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to