[Kolab-devel] [issue1140] amavisd: summary not working

gelpi@corona.it corona at gelpi.it
Mon Feb 20 16:11:52 CET 2006


Thomas Arendsen Hein wrote:

>New submission from Thomas Arendsen Hein <thomas at intevation.de>:
>
>rc.amavisd %daily calls /kolab/sbin/amavislogsumm with illegal options.
>Even if run manually, amavislogsumm doesn't produce a spam report, maybe because
>of too low loglevel or changed log format of amavisd.
>
>  
>

There are 2 problems also.

1) A permission error in the log directory.

Amavis log file must have kolab-r.kolab-r owner.
In my 2.1 kolab was root.root

2) Amavislogsumm is for an old log format.

After correcting iussue 2 Amavis told you what to modify in 
configuration to have statistics.

Here is the diff I use to correct it.

118c118,120
< $timeSum
---
 > $timeSum,
 >
 > $isClean
417a420
 > undef($isClean);
421c424
<
---
 >
429c432,433
< if ($logLine =~ m/SPAM-TAG, <(.*)> -> <(.*)>, Yes, hits=(\d+)/) {
---
 > # if ($logLine =~ m/SPAM-TAG, <(.*)> -> <(.*)>, Yes, hits=(\d+)/) {
 > if ($logLine =~ m/SPAM-TAG, <(.*)> -> <(.*)>, Yes, score=(\d+)/) {
437c441,442
< if ($logLine =~ m/SPAM, <(.*)> -> <(.*)>, Yes, hits=(\d+)/) {
---
 > # if ($logLine =~ m/SPAM, <(.*)> -> <(.*)>, Yes, hits=(\d+)/) {
 > if ($logLine =~ m/SPAM, <(.*)> -> <(.*)>, Yes, score=(\d+)/) {
451a457,461
 > # CLEAN
 > if ($logLine =~ m/Passed CLEAN, /) {
 > $isClean = 1;
 > }
 >
458c468
< } else {
---
 > } elsif (!defined($isClean)){



Andrea Gelpi





More information about the devel mailing list