** Description changed:

+ [Impact]
+ 
+ Postfix backwards-compatibility notices aren't handled by logwatch, and
+ thus end up in the "Unmatched Entries" section, one per event. These
+ informational messages clutters up the logwatch reports unnecessarily.
+ 
+ 
+ [Test Case]
+ 
+ $ export CODENAME="focal"
+ $ lxc launch ubuntu:${CODENAME} test-logwatch
+ $ lxc exec test-logwatch -- bash
+ 
+ # apt-get update
+ # apt-get dist-upgrade -y
+ # apt-get install -y logwatch
+ 
+ # wget 
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705/+attachment/5407064/+files/unmatched-entries-postfix%3Amail.log
+ # cat unmatched-entries-postfix%3Amail.log >> /var/log/mail.log
+ 
+ # logwatch --detail High --service all --range all --output stdout
+ 
+ Without the fix, there will be unmatched entries regarding backwards-
+ compatibility; with the fix there will be a simpler notice that Postfix
+ is running in backwards compatible mode.
+ 
+ (Note: For testing it's not really necessary to trigger the original
+ condition that produces the log entry, since for Logwatch the purpose is
+ more about making sure the entry is detected and processed
+ appropriately.)
+ 
+ 
+ [Regression Potential]
+ 
+ Since logwatch filters logs for errors pertinent to administrators,
+ standard things to watch out for are undesired changes in this filtering
+ behavior, such as flagging or failing to flag issues differently than
+ before, other than the specific messages being filtered with this
+ change.
+ 
+ 
+ [Fix]
+ 
+ [Discussion]
+ 
+ [Original Report]
  Under the "Postfix" heading, the following lines appear as unmatched:
  
  **Unmatched Entries**
-       1   May 18 16:58:35 Hostname postfix[4027]: Postfix is running with 
backwards-compatible default settings
-       1   May 18 16:58:35 Hostname postfix[4027]: To disable backwards 
compatibility use "postconf compatibility_level=2" and "postfix reload"
-       1   May 18 16:58:35 Hostname postfix[4027]: See 
http://www.postfix.org/COMPATIBILITY_README.html for details
-       1   May 18 16:57:12 Hostname postgrey[2173]: Resolved [localhost]:10023 
to [127.0.0.1]:10023, IPv4
+       1   May 18 16:58:35 Hostname postfix[4027]: Postfix is running with 
backwards-compatible default settings
+       1   May 18 16:58:35 Hostname postfix[4027]: To disable backwards 
compatibility use "postconf compatibility_level=2" and "postfix reload"
+       1   May 18 16:58:35 Hostname postfix[4027]: See 
http://www.postfix.org/COMPATIBILITY_README.html for details
+       1   May 18 16:57:12 Hostname postgrey[2173]: Resolved [localhost]:10023 
to [127.0.0.1]:10023, IPv4
  
  -----------------------------------------------------------------
  Description: Ubuntu 16.04 LTS
  Release: 16.04
  
  logwatch:
-   Installed: 7.4.2-1ubuntu1
-   Candidate: 7.4.2-1ubuntu1
-   Version table:
-  *** 7.4.2-1ubuntu1 500
-         500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
-         500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages
-         100 /var/lib/dpkg/status
+   Installed: 7.4.2-1ubuntu1
+   Candidate: 7.4.2-1ubuntu1
+   Version table:
+  *** 7.4.2-1ubuntu1 500
+         500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
+         500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages
+         100 /var/lib/dpkg/status
  
  postfix:
-   Installed: 3.1.0-3
-   Candidate: 3.1.0-3
-   Version table:
-  *** 3.1.0-3 500
-         500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
-         100 /var/lib/dpkg/status
+   Installed: 3.1.0-3
+   Candidate: 3.1.0-3
+   Version table:
+  *** 3.1.0-3 500
+         500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
+         100 /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1583705

Title:
  [SRU] unmatched entries for postfix

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to