Bug 68805 - improvements to logwatch sendmail script
Summary: improvements to logwatch sendmail script
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: logwatch   
(Show other bugs)
Version: 7.3
Hardware: i386 Linux
Target Milestone: ---
Assignee: Elliot Lee
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-07-14 17:22 UTC by Jay Berkenbilt
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-08 17:45:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to correct problems (2.41 KB, patch)
2002-07-14 17:22 UTC, Jay Berkenbilt
no flags Details | Diff
refinement of previous patch with clearer regexp (2.37 KB, patch)
2002-08-08 17:28 UTC, Jay Berkenbilt
no flags Details | Diff
subsumes earlier patches and includes additional enhancements (4.49 KB, patch)
2002-08-08 17:44 UTC, Jay Berkenbilt
no flags Details | Diff

Description Jay Berkenbilt 2002-07-14 17:22:24 UTC
Description of Problem:

There are several routine situations that logwatch's sendmail script misses.

Version-Release number of selected component (if applicable):

logwatch-2.6-2, sendmail-8.11.6-15

How Reproducible:


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.

Comment 1 Jay Berkenbilt 2002-07-14 17:22:47 UTC
Created attachment 65307 [details]
patch to correct problems

Comment 2 Elliot Lee 2002-08-08 15:42:21 UTC
Hmm, shouldn't that (astring)|(anotherstring) regex be (astring|anotherstring)?

Comment 3 Jay Berkenbilt 2002-08-08 17:28:13 UTC
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
additional enhancements.

Comment 4 Jay Berkenbilt 2002-08-08 17:28:43 UTC
Created attachment 69586 [details]
refinement of previous patch with clearer regexp

Comment 5 Jay Berkenbilt 2002-08-08 17:44:19 UTC
My new patch (logwatch-sendmail.patch3) subsumes the other patches.  In addition
to the above, it also includes

Detection of five day returns

unknown hosts

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.

Comment 6 Jay Berkenbilt 2002-08-08 17:44:57 UTC
Created attachment 69605 [details]
subsumes earlier patches and includes additional enhancements

Comment 7 Elliot Lee 2002-10-16 17:53:57 UTC
logwath-4.0 has this.

Note You need to log in before you can comment on or make changes to this bug.