Can not install qmail-scanner

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
torbayCS
Forum User
Forum User
Posts: 6
Joined: Tue Aug 08, 2006 12:19 pm

Can not install qmail-scanner

Unread post by torbayCS »

Hello

I have tried installing qmail-scanner and can not seem to get it to work.

I have installed this in the past on other servers, so did not think it would be so hard.

Upon running yum install qmail-scanner i get

Installing: qmail-scanner 100 % done 1/1
cannot write to /var/spool/qmailscan/qmail-scanner-queue-version.txt.tmp - Permission denied at /var/qmail/bin/qmail-scanner-queue.pl line 2089.


PSA Qmail works perfectly I just can't install this. Any ideas???

Al
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yeah that path is wrong, what version of qmail-scanner is being installed?
torbayCS
Forum User
Forum User
Posts: 6
Joined: Tue Aug 08, 2006 12:19 pm

Unread post by torbayCS »

yum tells me qmail-scanner.noarch 1:2.01-9.rhfc3.art

HTH
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

That shouldnt be happening with that version, /var/spool/qmailscan has been deprecated and replaced with /var/spool/qscan. Catch me on IM sometime, Id like to take a look at your system to see whats causing that.
pridedata
Forum User
Forum User
Posts: 31
Joined: Wed Jul 12, 2006 4:13 pm
Contact:

Unread post by pridedata »

scott this is the same issue i am having in my post qmail-scanner.


aim:othinchild
icq:21072609
yahoo:tyrsblade
pridedata
Forum User
Forum User
Posts: 31
Joined: Wed Jul 12, 2006 4:13 pm
Contact:

SOLVED!!!!!!!!

Unread post by pridedata »

yum remove qmail-scanner
cd /var/spool
rm -rf qmailscan/
rm -rf qscan/
yum install qmail-scanner
STOP clamd and spammassassin
qmail-reconfigure
start clamd and spamassassin
qmail-recondfigure

and finished.... awesome!
torbayCS
Forum User
Forum User
Posts: 6
Joined: Tue Aug 08, 2006 12:19 pm

Unread post by torbayCS »

That worked thanks. I now have a working qmail-scanner. Hopefully this should cut down on the ammount of spam.

One question, is it possible to find out how many emails qmail-scanner/spamassassin rejects as spam?

We were getting a lot of 'bounce spam' problems and I would just like to know if the spammer is still trying to get mail bounced through our server.

Thanks again pridedata

Alan
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Theres a shell script in the /var/spool/qscan dir that you can run against the qmail-queue.log file.
sander815
Forum User
Forum User
Posts: 21
Joined: Mon Dec 20, 2004 6:05 am

Unread post by sander815 »

why is it that i cannot stop my spamassassin?
[root@server1 root]# service spamassassin stop
Stopping spamd: [FAILED]
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Use ps to find the pids of spamd and kill them.
Lemonbit Internet Dedicated Server Management
sander815
Forum User
Forum User
Posts: 21
Joined: Mon Dec 20, 2004 6:05 am

Unread post by sander815 »

well:
[root@server1 log]# ps -aux | grep spamd
root 13310 0.0 6.4 38184 32184 ? S Aug17 0:04 /usr/bin/spamd -d -c -m5 -H -r /var/run/spamd.pid
root 13341 0.0 6.4 38184 32112 ? S Aug17 0:00 spamd child
root 13342 0.0 6.4 38184 32112 ? S Aug17 0:00 spamd child
root 21152 0.0 0.0 1504 452 pts/0 S 08:58 0:00 grep spamd

[root@server1 log]# kill -9 21152
-bash: kill: (21152) - No such process
[root@server1 log]#
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You tried to kill exactly the wrong process. 21152 was the 'grep spamd' you did, which indeed has already finished by the time you return to the prompt. You should have killed 13310, 13341 and 13342.

You can also filter out any results containg grep of course: ps aux | grep spamd | grep -v grep :)
Lemonbit Internet Dedicated Server Management
pridedata
Forum User
Forum User
Posts: 31
Joined: Wed Jul 12, 2006 4:13 pm
Contact:

Unread post by pridedata »

%killall -9 spamd
torbayCS
Forum User
Forum User
Posts: 6
Joined: Tue Aug 08, 2006 12:19 pm

Unread post by torbayCS »

scott wrote:Theres a shell script in the /var/spool/qscan dir that you can run against the qmail-queue.log file.
Hi Scott

Can you post a copy of that shell script somewhere or email it to me. As it is not present on my system.

Cheers
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

No scripts in my /var/spool/qscan dir either.
Lemonbit Internet Dedicated Server Management
Post Reply