MailScanner/Postfix/Logwatch heads up
Mark Sapiro
mark at msapiro.net
Sat Apr 25 16:04:43 IST 2009
On Fri, Apr 24, 2009 at 09:32:58AM -0700, Mark Sapiro wrote:
>
> If you run MailScanner with Postfix and you run Logwatch, this change
> will cause the " D62EC6903AF.P0113C to C3FEF6903B1" portion of the
>
> Apr 24 09:27:30 sbh16 MailScanner[9194]: Requeue: D62EC6903AF.P0113C to
> C3FEF6903B1
>
> log entries to be printed as "**Unmatched Entries**" instead of ignored.
>
> The attached lw.patch.txt patch will fix this.
The revised patch attached is better as it doesn't break the logwatch
script for pre 4.76.18 installations. It also fixes a minor line number
discrepancy caused by my not correcting the line number when removing
other patches from the diff.
--
Mark Sapiro mark at msapiro net The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
-------------- next part --------------
--- /usr/share/logwatch/scripts/services/mailscanner 2007-01-06 06:08:22.000000000 -0800
+++ /etc/logwatch/scripts/services/mailscanner 2009-04-24 16:33:17.000000000 -0700
@@ -76,7 +76,7 @@
( $ThisLine =~ m/Read [0-9]+ hostnames from the phishing whitelist/ ) or
( $ThisLine =~ m/completed at [0-9]+ bytes per second/ ) or
( $ThisLine =~ m/Message .+ from .+ to .+ is/ ) or
- ( $ThisLine =~ m/^[A-F0-9]+\.[A-F0-9]{5} to/ ) or #for postfix Requeue:
+ ( $ThisLine =~ m/^[A-F0-9]+\.P?[A-F0-9]{5} to/ ) or #for postfix Requeue:
( $ThisLine =~ m/^calling custom .* function/ ) or
( $ThisLine =~ m/^Initialising database connection/ ) or
( $ThisLine =~ m/^Finished initialising database connection/ ) or
More information about the MailScanner
mailing list