]> gitweb.michael.orlitzky.com - amavis-logwatch.git/blobdiff - amavis-logwatch
Ignore "SANITIZED ... NULL byte(s)" messages.
[amavis-logwatch.git] / amavis-logwatch
index 250a6baa4658307f9b2b200990737237b4ce88a7..044c94d7728d023b57e88a083bdc6e465edf0e3b 100644 (file)
@@ -2052,6 +2052,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: