Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What permissions for qmail-scanner-queue-version.txt?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Liquid Crystal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 77

PostPosted: Sat Apr 16, 2005 12:39 pm    Post subject: What permissions for qmail-scanner-queue-version.txt? Reply with quote

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
View user's profile Send private message
adelante
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2003
Posts: 133
Location: South Africa - Johannesburg

PostPosted: Sat Apr 16, 2005 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Liquid Crystal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 77

PostPosted: Sun Apr 17, 2005 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
lcj
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 82
Location: Opole, Poland

PostPosted: Thu May 04, 2006 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum