X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=amavis-logwatch;h=912839ec2a38ec44ff50454be125bae5511963cd;hb=822ed375520babc7c58f37af075ff65bb2cc16ad;hp=6d06793fd721abd5ffded56ce9a1a869ba92f645;hpb=a93ee5d433308d2cac76ac9502e34c953ff96337;p=amavis-logwatch.git diff --git a/amavis-logwatch b/amavis-logwatch index 6d06793..912839e 100644 --- a/amavis-logwatch +++ b/amavis-logwatch @@ -1,18 +1,11 @@ #!/usr/bin/perl -T ########################################################################## -# Amavis-logwatch: written and maintained by: -# -# Mike "MrC" Cappella -# http://logreporters.sourceforge.net/ +# Amavis-logwatch: written by Mike Cappella, and maintained by Michael +# Orlitzky . # # Please send all comments, suggestions, bug reports regarding this -# program/module to the email address above. I will respond as quickly -# as possible. [MrC] -# -# Questions regarding the logwatch program itself should be directed to -# the logwatch project at: -# http://sourceforge.net/projects/logwatch/support +# program/module to the email address above. # ####################################################### ### All work since Dec 12, 2006 (logwatch CVS revision 1.28) @@ -27,21 +20,9 @@ ### under your own copyright or a different license this ### must be explicitly stated in the contribution an the ### Logwatch project reserves the right to not accept such -### contributions. If you have made significant -### contributions to this script and want to claim -### copyright please contact logwatch-devel@lists.sourceforge.net. +### contributions. ########################################################## -########################################################################## -# The original amavis logwatch filter was written by -# Jim O'Halloran , and has had many contributors over -# the years. -# -# CVS log removed: see Changes file for amavis-logwatch at -# http://logreporters.sourceforge.net/ -# or included with the standalone amavis-logwatch distribution -########################################################################## - package Logreporters; use 5.008; use strict; @@ -49,7 +30,7 @@ use warnings; no warnings "uninitialized"; use re 'taint'; -our $Version = '1.51.03'; +our $Version = '1.51.04'; our $progname_prefix = 'amavis'; # Specifies the default configuration file for use in standalone mode. @@ -2029,7 +2010,7 @@ sub create_ignore_list() { push @ignore_list_final, qr/^address modified \(/; push @ignore_list_final, qr/^Request: AM\.PDP /; push @ignore_list_final, qr/^DSPAM result: /; - push @ignore_list_final, qr/^bind to \//; + push @ignore_list_final, qr/^(will )?bind to \//; push @ignore_list_final, qr/^ZMQ enabled: /; push @ignore_list_final, qr/^Inserting header field: X-Amavis-Hold: /; @@ -2052,6 +2033,12 @@ sub create_ignore_list() { # describe what is being sent to the systemd notification socket, # if one exists. push @ignore_list_final, qr/^sd_notify( \(no socket\))?:/; + + # In amavisd-new-2.11.0-rc1 and later, amavis will replace any null + # bytes that it finds in the body of a message with a "modified + # UTF-8" encoded null. The number of times it does this is then + # logged with the following message. + push @ignore_list_final, qr/^smtp forwarding: SANITIZED (\d+) NULL byte\(s\)/; } # Notes: @@ -2811,6 +2798,7 @@ while (<>) { ($p1 =~ /^TROUBLE/) or ($p1 =~ /Can't (?:connect to UNIX|send to) socket/) or ($p1 =~ /: Empty result from /) or + ($p1 =~ /: Select failed: Interrupted system call/) or ($p1 =~ /: Error reading from socket: Connection reset by peer/) or ($p1 =~ /open\(.*\): Permission denied/) or ($p1 =~ /^_?WARN: /) or