I'm using qmail, qmail-scanner 1.23 and ClamAV 0.75.1 on CentOS 3.1 (recompile of RHEL3.) Ocassionally, I get the "Unable to open file or directory ERROR" message in my clamd.log. Now I know this sounds like a permissions problem, but bear with me. This only happens sometimes, there are hundreds of other attachments being scanned by ClamAV without a problem. I have set "User qscand" in my clamav.conf, which is the user that qmail-scanner runs under. My softlimit for qmail is 50MB. I've checked that clamd is running and if I copy the DWG file to another location (matching permissions and su to qscand), clamdscan doesn't have a problem scanning the file. I've noticed similar behavior with OLE2 scanning enabled, certain DOC files would cause the same error. Another user had the same problem http://sourceforge.net/mailarchive/message.php?msg_id=7501518 and http://sourceforge.net/mailarchive/message.php?msg_id=8381577 with no resolution. I've disabled OLE2 scanning for the moment. However, I have no idea why ClamAV wouldn't be able to scan the DWG file. Below is the permissions of the incoming message and attachment. I've also listed the lines from qmail-queue.log and clamd.log.

permissions:
[EMAIL PROTECTED] tmp]# ls -lR
.:
total 8
drwx------ 2 qscand vchkpw 4096 Sep 22 11:14 newmail01.readyhosting.com109586964548211704


./newmail01.readyhosting.com109586964548211704:
total 152
-rw------- 1 qscand qscand 2 Sep 22 11:14 1095869645.11711-0.newmail01.readyhosting.com
-rw------- 1 qscand qscand 267 Sep 22 11:14 1095869645.11711-1.newmail01.readyhosting.com
-rw------- 1 qscand qscand 143187 Sep 22 11:14 2605812SKA.dwg


qmail-queue.log:
Wed, 22 Sep 2004 10:50:59 CDT:8411: run /usr/bin/clamdscan -r --disable-summary --max-recursion=10 --max-space=100000 /var/spool/qmailscan/tmp/newmail01.readyhosting.com10958682094828411 2>&1
Wed, 22 Sep 2004 10:50:59 CDT:8411: --output of clamdscan was:
/var/spool/qmailscan/tmp/newmail01.readyhosting.com10958682094828411/2605812SKA.dwg: Unable to open file or directory ERROR
/var/spool/qmailscan/tmp/newmail01.readyhosting.com10958682094828411: OK
--
Wed, 22 Sep 2004 10:50:59 CDT:8411: error_condition: X-Qmail-Scanner-1.23: clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2


clamd.log:
Wed Sep 22 10:50:59 2004 -> /var/spool/qmailscan/tmp/newmail01.readyhosting.com10958682094828411/2605812SKA.dwg: Unable to open file or directory ERROR


Any help would be greatly appreciated.

Thanks,
Grant Supp
Ready Hosting, Inc.


------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to