[Logwatch-Devel] how to match milter logs?

Greg Matthews gmatt at nerc.ac.uk
Tue Dec 6 10:31:01 MST 2005


On Tue, 2005-12-06 at 08:23 -0800, Bjorn L. wrote:
> I made a couple of changes:

dammit... half a day bashing at this and there it is...

> $Sendmail_MatchFilter = "                                           \
> if ( ($User) = ($ThisLine =~ /Milter: to=<(\S+)>, reject=.+/ ) ) {  \
>        $UnknownUsersCheckRcpt{$User}{$QueueID}++;                    \
>        $Msgs{$QueueID}{"BadRCPT"}++;                                 \
>        undef $ThisLine;                                              \
>     }                                                                \
>     "

thanks for clarifying this a bit for me...

can I define my own variables here? ie if I want to log these as
$MilterAheadReject{$User} Do I declare them inside the
$Sendmail_MatchFilter variable? Then presumably include them in
$Sendmail_ReportFilter too.

GREG


-- 
Greg Matthews           01491 692445
Head of UNIX/Linux, iTSS Wallingford



More information about the Logwatch-Devel mailing list