I replaced my 'qmail-scanner.pl' as mentioned in post
http://sourceforge.net/mailarchive/forum.php?thread_id=3462292&forum_id=4330
I must have missed something because I am having permission problems. Help
me see what I missed.

This is the error I see in the logs.

X-Qmail-Scanner-1.20:[] cannot create /var/spool/qmailscan/tmp - Permission
denied

Setup: OpenBSD 3.2,Q-S1.20st, clamav.54, SA-2.55,C-wrapper

Steps Taken:
1. Patched Q-S 1.20 with q-s-1.20st-20031222.patch
2. Configured with the following:
        ./configure --admin admin --domain cornerstonens.com --notify
nmladm --local-domains
cornerstonens.com,world2one.com,i-dex.com,shaunti.com --log-details
yes --qs-user qmailq --qs-group qmail --sa-quarantine  6.5 --sa-delete
10.1 --sa-reject yes
3. Renamed old qmail-scanner-queue.pl
4. Copied the new qmail-scanner-queue.pl  to /var/qmail/bin and CHMOD'd the
new file to match the old. I also made sure suidperl is not being called
since I am using the Cwrapper.
5. Restarted Qmail
6. Ran /var/qmail/bin/qmail-scanner-queue.pl -g as root and qmailq
7. I changed the permissions trying world-writable on /var/spool/qmailscan
and /var/spool/qmailscan/tmp. It did not make a difference.
8. Rolled Back to Q-S 1.16 successfully.

Results of some of the steps:
drwxrwx---  4 qmailq  qmail   512 Dec 23 18:39 qmailscan
drwxrwx---  2 qmailq  qmail        512 Dec 23 18:43 tmp
-rwxrwx---  1 qmailq  qmail     482099 Dec 23 18:35 qmail-queue.log
drwxrwx---  5 qmailq  qmail        512 Jul 15 09:28 quarantine
-rw-r-----  1 root    qmail      32768 Dec 23 18:37
quarantine-attachments.db
-rwxrwx---  1 qmailq  qmail       4325 Dec 23 17:08
quarantine-attachments.txt


AS Root:
/var/qmail/bin/qmail-scanner-queue.pl -g
perlscanner: generate new DB file from
/var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 17 entries.

As qmailq:
 su qmailq
% /var/qmail/bin/qmail-scanner-queue.pl -g
perlscanner: generate new DB file from
/var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 17 entries.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/20/2003



-------------------------------------------------------
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