Red Hat Bugzilla – Bug 68805
improvements to logwatch sendmail script
Last modified: 2008-05-01 11:38:02 EDT
Description of Problem:
There are several routine situations that logwatch's sendmail script misses.
Version-Release number of selected component (if applicable):
Summary of changes:
In Authentication-Warning message: catch non-use of the HELO protocol in
addition to setting sender with -f
4-hour warnings: catch both "return to sender" and "sender notify"
Catch unidentified unknown users (postmaster notify, return to sender)
Catch timeouts communicating with remote servers
A patch is attached.
Created attachment 65307 [details]
patch to correct problems
Hmm, shouldn't that (astring)|(anotherstring) regex be (astring|anotherstring)?
The regexp is correct as given, but it can be somewhat simplified. Check out my
revised patch. It does exactly the same thing but looks a little cleaner. I've
tested this against my own server by running logwatch --range all --service
sendmail with and without the change.
My new patch logwatch-sendmail.patch2 is functionally identical to the first
patch. I'm also posting a second patch that subsumes these with a few
Created attachment 69586 [details]
refinement of previous patch with clearer regexp
My new patch (logwatch-sendmail.patch3) subsumes the other patches. In addition
to the above, it also includes
Detection of five day returns
unresolved sender domains
ignore "Service unavailable" messages
improved matching for timeouts to include both read and write timeouts
All changes tested on my production mail server.
Created attachment 69605 [details]
subsumes earlier patches and includes additional enhancements
logwath-4.0 has this.