View previous topic :: View next topic |
Author |
Message |
Liquid Crystal Tux's lil' helper
Joined: 06 Nov 2003 Posts: 77
|
Posted: Sat Apr 16, 2005 12:39 pm Post subject: What permissions for qmail-scanner-queue-version.txt? |
|
|
Hello everyone,
I had qmail running fine but then I wanted to configure SA+ClamAV with amavisd-new and qmail-scanner.
In my /var/log/mail.log I get:
Code: | cannot open /var/spool/qmailscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied |
I tried to run qmail-scanner-queue.pl -z but I don't feel anything changing!!!
I checked the permissions on /var/spool/qmailscan/qmail-queue-version.txt and found it as
-rw------- 1 root root 60 Apr 16 13:55 /var/spool/qmailscan/qmail-scanner-queue-version.txt
while all other files in /var/spool/qmailscan/ are owned by qscand
This made me worry about the required permissions and owner!
Should I change that to qscand? I can't receive any E-mail now though I can send! _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
Back to top |
|
|
adelante Tux's lil' helper
Joined: 19 Apr 2003 Posts: 133 Location: South Africa - Johannesburg
|
Posted: Sat Apr 16, 2005 4:26 pm Post subject: |
|
|
the reason for this is because when u run:
qmail-scanner-queue.pl -z
as root, it changes the permissions of /var/spool/qmailscan/qmal-scanner-version.txt
u can go in there and just chmod 755 qmail-scanner-version.txt and it will work fine |
|
Back to top |
|
|
Liquid Crystal Tux's lil' helper
Joined: 06 Nov 2003 Posts: 77
|
Posted: Sun Apr 17, 2005 7:10 am Post subject: |
|
|
Thanks for your reply, I will try that and see what goes on.
For the time being, I just removed clamav. I want to test spamassassin with qmail and qmail-scanner.
I remember I read in the documentation that whenever I remove or add any packages, related to the mail system such as clamav, I have to re-emerge qmail-scanner. Now I have no clamav, I did emerge clamav -C, but when I try to re-emerge qmail-scanner, it is requesting to install clamav as a dependancy!
should I mask it? Or is this a bad thing to do? _________________ Making *nix user friendly is easier than debugging Windoz
Tuxntosh web site The *nix Graphics Web Site (Warning! Not for M$ Windowz users!) |
|
Back to top |
|
|
lcj Tux's lil' helper
Joined: 25 Apr 2004 Posts: 82 Location: Opole, Poland
|
Posted: Thu May 04, 2006 12:53 pm Post subject: |
|
|
In short: qmail runs with qmaild UID while scanner would like to run with qscand - it was configured to do so.
You can tell it to use qmaild UID (and proper GID)
1. edit the Code: | /usr/portage/mail-filter/qmail-scanner/qmail-scanner-1.25-r1.ebuild | and change the qscand to qmaild (also you can change group to i.e. nofiles)
2. remove from Manifest in the folder hashes other than MD5, and replace the size and MD5 sum by new file size and md5sum with Code: | md5sum qmail-scanner-1.25-r1.ebuild |
3. emerge scanner again, reload qmail[/code]
not clean but works for me (in terms of qmail-scanner)
If clamav makes problems:
Code: |
mv /usr/bin/clamdscan /usr/bin/clamdscan.orig
ln -s /usr/bin/clamscan /usr/bin/clamdscan
|
Also not clean but works too.[/code] _________________ --
Lukasz C. Jokiel via web |
|
Back to top |
|
|
|