Changeset 621


Ignore:
Timestamp:
Oct 18, 2011, 2:09:54 PM (9 years ago)
Author:
ben
Message:

keep postfix/milter-greylist/deliver/amavis, see #28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postfix-logtools/poststat/anonymizer.pl

    r523 r621  
    2929
    3030while (<>) {
    31     # Only keep postfix/* related lines, anonymize mail server's hostname
    32     # and move dates to a fixed offset.
    33     next unless s/^[a-zA-Z]+ +\d+ ([\d:]{8}) \w+ postfix\//Apr 1 $1 host postfix\//;
     31    # Anonymize mail server's hostname and move dates to a fixed offset.
     32    next unless s/^[a-zA-Z]+ +\d+ ([\d:]{8}) \w+ /Apr 1 $1 host /;
     33    # Only keep postfix/* milter-greylist deliver and amavis related lines
     34    next unless m/^Apr 1 ([\d:]{8}) host (postfix\/|milter-greylist\:|.* deliver\(|amavis)/;
    3435    # Scramble ip addresses.
    3536    s| (([\d]{1,3}\.){3}[\d]{1,3}) | join('.', map {int($_/3)} split(/\./, $1)) |gex;
Note: See TracChangeset for help on using the changeset viewer.