Make Logwatch identify/ignore Subject line in maillog

Making changes to the way log entries appear in logfiles makes scream with ”
**Unmatched Entries**” error in the reports. My earlier post on maillog modification did the similar thing. Errors bailed out in logwatch report where in script failed to identify the Subject as the genuine entry. To resolve this, logwatch .conf file can be modified as follows to identify Subject: as a filter.

$Sendmail_MatchFilter = ” \
if ( $ThisLine =~ /Subject:/ ) { \
$ThisLine = ”; \

This helps to make logwatch ignore the Subject: line appearing in your sendmail maillog.


Tags: , ,

Published by


Gnu/Linux Enthusiast, Kannadiga, Wikipedian, Amateur photographer, trekker and more

Leave a Reply

Your email address will not be published. Required fields are marked *