Issues (and partial fix) for spamassassin support

Eric Sauvageau merlin at mtl.meplus.com
Fri Jun 13 04:13:14 CEST 2003


Hi,

I'm new to Lire, having installed it on a Mandrake system a few days ago.
The server runs a mixture of Mdk 8.x and 9.0 packages, so I installed the
9.0 RPMs for Lire 1.3.

I also run Spamassassin 2.44 on this server.  However I was unable to get
Lire to generate any report from my Spamassassin log.  My logs were looking
like this:

---
Jun 12 17:33:53 linux spamd[938]: connection from localhost.localdomain
[127.0.0.1] at port 53296
Jun 12 17:33:53 linux spamd[10862]: info: setuid to user succeeded
Jun 12 17:33:53 linux spamd[10862]: processing message
<20030612081106.31808.qmail at idataplaza.com> for user:501, expecting 2000
bytes.
Jun 12 17:33:58 linux spamd[10862]: identified spam (6.3/5.0) for user:501
in 5.0 seconds, 2000 bytes.
___

(actual username changed)

After having a look at spamassassin2dlf, I tracked out the issue with the
parser, who was expecting the elapsed time to be an integer value.  So I was
able to correct this by replacing line 60 with this one:

---
    if ($line=~/^(clean message|identified spam) \((-?[\d.]+)\/[\d.]+\)  for
.+?:\d+ in ([\d.]+) seconds, (\d+) bytes./) {
---

After doing this, Lire was finally able to generate a report.  I don't know
if it's something that's simply different between SpamAssassin 2.44 and the
2.5x branch or if it was a bug.  If it's actually a bug, then you got your
fix :)


However I then ran into a new problem: the text report would properly list
the mailboxes receiving spam in it's Top-10 list, however the html report
wouldn't, saying "No report available" for the Mailboxes item.  This one I
have been unable to track down so far.  Here are the actual command lines I
used to generate both reports:

Working text mode, with properly displayed Mailboxes:
        lr_log2report spamassassin < /root/spam.log

This one won't show any Mailbox:
        lr_log2report -o html spamassassin < /root/spam.log


Any help on this last problem would be appreciated :)

Regards,

--- 
 Eric Sauvageau  -  merlin at linux.tc3net.com  -  http://camelot.tc3net.com/
  Amiganet IRCop - Visit http://www.amiganet.org/ for information.
   "Any sufficiently advanced technology is indistinguishable from magic."
                   -- Arthur C. Clark

-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list