Do you mean the whole qmailscan directory? I tried changing the owner of
quarantine-attachments.db to qmailq, but that didn't make any difference.

Yes (and there are most likely others here who know better than I) ... in
all of my installations including 1.15 version, the whole /var/spool/qmailscan
directory tree is owned by the qmailq user. If qmailq is running these (is
/var/qmail/bin/qmail-scanner-queue.pl suid qmailq?) and group isn't nofiles,
it would not find /var/spool/qmailscan/quarantine-attachments.db with
ownerships as below.


A couple of tests:
(quick and dirty):
$ chmod 666 /var/spool/qmailscan/quarantine-attachments.db


Then run and look at the log again.

(more complicated):
around line 998 of q-s.pl add:
my ($idd);
$idd=`id -a`;
&debug("ID is: $idd\n");


This should show you what user qmail-scanner-queue.pl is running under.



> [EMAIL PROTECTED] qmail-scanner-1.20]# ll
> /var/spool/qmailscan/quarantine-attachments.*
> -rw-r----- 1 qscand nofiles 12288 Dec 18 10:33
> /var/spool/qmailscan/quarantine-attachments.db
> -rw-rw---- 1 qscand qscand 4361 Dec 17 14:28
> /var/spool/qmailscan/quarantine-attachments.txt


Shouldn't this tree be owned by the qmailq user?


Do you mean the whole qmailscan directory? I tried changing the owner of
quarantine-attachments.db to qmailq, but that didn't make any difference.


From looking thru the qmail-queue.log I think that qmail-scanner-queue.pl is
failing at line 1003 in the perlscan_scanner function (when it tries to open
quarantine-attachments.db). Here's a snip of the log:


Thu, 18 Dec 2003 16:44:41 +0200:7427: clamscan: finished scan of dir
"/var/spool/qmailscan/tmp/ns.arava.co.il10717586814617427" in 0.250937 secs
Thu, 18 Dec 2003 16:44:41 +0200:7427: scanloop: finished scan of
"/var/spool/qmailscan/tmp/ns.arava.co.il10717586814617427"...
Thu, 18 Dec 2003 16:44:41 +0200:7427: p_s: starting scan of directory
"/var/spool/qmailscan/tmp/ns.arava.co.il10717586814617427"...
18/12/2003 16:44:41:7427: error_condition: X-Qmail-Scanner-1.20: cannot open
/var/spool/qmailscan/quarantine-attachments - No such file or directory


Any other suggestions will be warmly accepted.
TIA
--Micha



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to