Bug in SweepViruses.pm?
Holger Gebhard
holger at gebhardweb.de
Thu Sep 14 10:51:23 IST 2006
Hi Group,
i noticed a small failure in Maillog...
I use two virus scanners, f-secure and clamavmodule.
In MailScanner.conf the first entry is clamavmodule and the second is
f-secure .
When i receive a Virusmessage all thems to work...
The Maillog shows all the the infected mails, the virussender ip, etc.
The Mail is blocked and the Postmaster receives a warning...
I use MailScanner-MRTG for counting viruses.
The counting script match a logline created by MailScanner: "Virus Scanning
found .. viruses".
The Logline is created in MessageBatch.pm "sub VirusScan".
This function starts "scanbatch" in SweepViruses.pm.
"Scanbatch" runs all the virustests and finaly returns a number of viruses
found ($NumInfections).
Here is a small bug...
When the first scanner (clamav) found one virus and the second does not, the
value of "$NumInfections" is always "0" (must be 1).
When i change the order of the scanners in MailScanner.conf for example to
f-secure and clamavmodule the value of "$NumInfections" is "1".
It seems that the last Scanner overwrites all other results in this
variable?
Hope anyone can help?
Holger
More information about the MailScanner
mailing list