Tags: patch

aptitude claims I currently have spamassassin 3.1.0a-2 installed.
I haven't edited its logcheck files yet.

It appears that the patch mentioned earlier was correctly applied to
/etc/logcheck/ignore.d.paranoid/spamassassin .  But there are still
a couple of things to clean up.

In particular, my /etc/logcheck/ignore.d.server/spamd file (a) is not
named consistently with /etc/logcheck/ignore.d.paranoid/spamassassin
and /etc/logcheck/violations.ignore.d/spamassassin, (b) and (b) contains
the following directive to ignore a log entry which seems perhaps
overly-specific:

Oct 21 13:06:02 localhost spamd[5468]: spamd: processing message (unknown) for 
siaco:1000

Also, the ...paranoid/spamassassin file mistakenly misses the
ordinary line "handled cleanup of child pid 5625 due to SIGCHLD".

It also misses "no response" which I believe is triggered from
the ::Plugin::Pyzor module, which again is pretty normal (I assume it
means a Pyzor server was temporarily down).  The code reads:
    if ([EMAIL PROTECTED]) {
      # this exact string is needed below
      die("no response\n");     # yes, this is possible

And this also seems to be a pretty ordinary warning that should be
ignored but isn't:  "prefork: select returned error on server
filehandle".  The code comment for that warning reads:
  # errors on the handle?
  # return them immediately, they may be from a SIGHUP restart signal

So I would suggest the following patches.

--- ignore.d.paranoid/spamassassin.orig 2005-11-09 16:54:45.000000000 -0500
+++ ignore.d.paranoid/spamassassin      2005-11-21 13:48:49.000000000 -0500
@@ -8 +8 @@
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ spamd\[[0-9]+\]:( spamd:)? handled cleanup 
of child pid [0-9]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ spamd\[[0-9]+\]:( spamd:)? handled cleanup 
of child pid [0-9]+
@@ -10,0 +11,2 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ spamd\[[0-9]+\]: prefork: select returned 
error on server filehandle:
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ spamd\[[0-9]+\]: no response$

Change the name of ignore.d.server/spamd to ignore.d.server/spamassassin,
and then:

--- ignore.d.server/spamassassin.orig   2005-11-21 13:50:47.000000000 -0500
+++ ignore.d.server/spamassassin        2005-11-21 13:49:56.000000000 -0500
@@ -6 +5,0 @@
-Oct 21 13:06:02 localhost spamd[5468]: spamd: processing message (unknown) for 
siaco:1000
-- 
  Jamie McCarthy
 http://mccarthy.vg/
  [EMAIL PROTECTED]

Reply via email to