Re: Patch for amavis script
MrC <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Harald Geiger wrote:
> Hi,
>
> here is a patch for the amavis script.
> This is needed if amavisd is connected by a remote host.
Harald,
Thanks. This is handled correctly in the latest release version 1.48.26 at:
http://www.mikecappella.com/logwatch
You can pickup the latest release or development version from the site.
MrC
--- /usr/share/logwatch/scripts/services/amavis 2007-05-20
02:24:33.000000000 +0200
+++ amavis 2008-01-24 12:25:11.000000000 +0100
@@ -558,8 +558,9 @@
}
$Totals{"CleanMsg$action"}++;
- } elsif (my ($size) = ($p1 =~ /^LMTP::\d+ .* SIZE=(\d+) / )) {
+ } elsif (my ($size) = ($p1 =~ /^LMTP:(?:\[$re_IP])?:\d+ .*
SIZE=(\d+) / )) {
# LMTP::10024
/var/spool/amavis/tmp/amavis-20070119T144757-09086: <[email protected]>
-> <[email protected]> SIZE=131730 Received: from mail.sample.net
([127.0.0.1]) by localhost (mail.sample.net [127.0.0.1]) (amavisd-new,
port 10024) with LMTP for <[email protected]>; Fri, 19 Jan 2007 15:41:45
-0800 (PST)
+ # LMTP:[10.0.0.1]:10024
/var/spool/amavis/tmp/amavis-20070601T171120-30408: <[email protected]>
-> <[email protected]> SIZE=13730 Received: from mail.sample.net
([127.0.0.1]) by localhost (mail.sample.net [127.0.0.1]) (amavisd-new,
port 10024) with LMTP for <[email protected]>; Fri, 1 Jun 2007 17:11:20
+0200 (CEST)
$Totals{'BytesScanned'} += $size;
# SpamPassed, SpamBlocked
>
> Regards,
> Harald