What is causing this error?

Glenn Steen glenn.steen at gmail.com
Tue Jun 26 10:59:22 IST 2007


On 26/06/07, Martin <martin.lyberg at gmail.com> wrote:
> Martin wrote:
> > Hi,
> >
> > Testing centos on a test-machine using MS Version 4.60.8-1 and ClamAV
> > 0.90.3 and SpamAssassin 3.2.1 easy installation package. I'm using the
> > clamavmodule.
> >
> > Noticed the following error after every batch in the maillog:
> >
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: unable to open database
> > file(1) at dbdimp.c line 402
> >
> > Full log below:
> >
> > Jun 26 10:51:53 antispam2 MailScanner[9212]: New Batch: Scanning 1
> > messages, 2413 bytes
> > Jun 26 10:51:53 antispam2 MailScanner[9212]: Spam Checks: Starting
> > Jun 26 10:52:01 antispam2 MailScanner[9212]: Spam Checks completed at
> > 299 bytes per second
> > Jun 26 10:52:01 antispam2 MailScanner[9212]: Virus and Content Scanning:
> > Starting
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Virus Scanning completed at
> > 1325 bytes per second
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: unable to open database
> > file(1) at dbdimp.c line 402
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Requeue: 17F07D4CAF8.66A9B
> > to DDABDD4CB6B
> > Jun 26 10:52:03 antispam2 postfix/qmgr[6048]: DDABDD4CB6B:
> > from=<xxxxxxxxx>, size=2165, nrcpt=1 (queue active)
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Uninfected: Delivered 1
> > messages
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Virus Processing completed
> > at 69187 bytes per second
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Batch completed at 243
> > bytes per second (2413 / 9)
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Batch (1 message) processed
> > in 9.92 seconds
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: Logging message
> > 17F07D4CAF8.66A9B to SQL
> > Jun 26 10:52:03 antispam2 MailScanner[7816]: 17F07D4CAF8.66A9B: Logged
> > to MailWatch SQL
> > Jun 26 10:52:03 antispam2 MailScanner[9212]: "Always Looked Up Last"
> > took 0.01 seconds
> > Jun 26 10:52:03 antispam2 postfix/smtp[13123]: DDABDD4CB6B:
> > to=<xxxxxxxxxx>, relay=xxxxxxxx[xxxxxxxxxx]:25, delay=11,
> > delays=11/0.02/0/0.17, dsn=2.6.0, status=sent (250 2.6.0 <xxxxxxxxxxxxx>
> > Queued mail for delivery)
> > Jun 26 10:52:03 antispam2 postfix/qmgr[6048]: DDABDD4CB6B: removed
> >
> >
> > Any idea?
> >
>
> Followup:
>
> Noticed that the permissions on /var/spool/Mailscanner/incoming was set
> to clamav:clamav and the quarantine was set to root:apache
>
> changed both to postfix:postfix and it was solved.
>
> I remember that i changed it to postfix:postfix before, what did this
> change suddenly? Am i missing anything?
>
Did you perhaps try out the clamd direct support? That would need the
"clamd user or group" (typically clamav for both) be able to read at
least incoming. For the quarantine, provided you run MailWatch, you'd
need postfix:apache (and correct permissions allowing the apache user
(whatever that may be:) in MailScanner.conf) be able to read/write the
quarantine.

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list