Bug#340226: [Logcheck-devel] Bug#340226: logcheck does not succeessfully filter postfix/policy-spf or amavis
Jamie L. Penman-Smithson
jamie at silverdream.org
Sun Feb 12 05:05:00 UTC 2006
tags 340226 pending
thanks
On 22 Nov 2005, at 20:34, Todd Troxell wrote:
> On Tue, Nov 22, 2005 at 02:14:47PM -0500, Lia Treffman wrote:
>> Well, I uninstalled and then reinstalled logcheck and now it works.
>> That is so very, very weird. Thanks for your time.
>> Lia
>
> Weird! I'm glad it works. Logcheck should probably warn on
> unreadable
> rulefiles... I retitled this bug.
I've modified cleanrules to test whether the file is readable and
exit if not:
for rulefile in $(find $dir); do
rulefile=$(basename $rulefile)
if [ -f ${dir}/${rulefile} ]; then
debug "cleanrules: ${dir}/${rulefile}"
if [ -r ${dir}/${rulefile} ]; then
# pipe to cat on greps to get usable exit
status
egrep --text -v '^[[:space:]]*$|^#' $dir/
$rulefile | cat \
>> $cleaned/$rulefile \
|| error "Couldn't append to $cleaned/
$rulefile. Disk Full?"
else
error "Couldn't read $dir/$rulefile"
fi
fi
done
jps at lorien:~$ sudo chown root:root /etc/logcheck/ignore.d.server/postfix
jps at lorien:~$ sudo -u logcheck logcheck -o -t
Error: Couldn't read /etc/logcheck/ignore.d.server/postfix.
-j
--
-Jamie L. Penman-Smithson <jamie at silverdream.org>
t: +44 1273 424795; f: +44 1273 424795
PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8
never send mail to: oubliette.z at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20060212/e1a1ae15/attachment.pgp
More information about the Logcheck-devel
mailing list