Thanks Niek,

Yes it was permissions in the end... but not just in /var/spool/qmailscan 
where I started looking.  I fixed the /var/spool/qmailscan permissions by 
altering /usr/local/etc/clamav.conf and changing the line "User clamav" to 
"User qscand"

That still didn't fix the problem.  Then I looked at /tmp/clamd.log and 
found the following message:
Thu Jun  3 10:41:40 2004 -> ERROR: Can't save PID in file 
/var/run/clamd.pid

The directory /var/run had ownership of root.root and permissions of 
drwxr-xr-x, so neither user clamav or user qscand had write permissions in 
/var/run.  It would seem that clamd changes user before creating 
/var/run/clamd.pid.  So I did a fairly ugly thing (hangs head a moment in 
shame) and changed ownership of /var/run to root.qscand and changed 
permissions with chmod g+w /var/run to allow the qscand group to have write 
privileges.  Problem fixed!

Now, this solution works for me because this box is only ever destined to 
be a dedicated mailserver... but it's not going to be for everybody!

Good luck guys.

Paul.

-----Original Message-----
From:   Niek Baakman [SMTP:[EMAIL PROTECTED]
Sent:   Thursday, June 03, 2004 11:54 PM
To:     '[EMAIL PROTECTED]'
Cc:     Paul Norris
Subject:        Re: [Qmail-scanner-general]Known problem? - Can't access the file 
ERROR

Paul Norris wrote:
> Hi all,
>
> I'm using:
> qmail-scanner-1.22
>       clamdscan: 0.71.
>       spamassassin: 2.63
>
> I'm getting the following error from clamdscan:
> /var/spool/qmailscan/tmp/ms11086219940479419: Can't access the file ERROR

perhaps clamdscan has no permission to enter the directory?

> I can verify that clamdscan works from the command line.
>
> I think it's a permissions problem rather than a memory problem... I've
> tried softlimits of 15Mb, 25Mb and even the "stupid" 100Mb.  I have
> qmail-scanner 1.20/clamdscan 0.68 working on another box with a softlimit 

> of 12Mb.
>
> Is this a known issue?  Any suggestions and/or solutions?
>
> Paul Norris

Niek


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to