[Beginner] SpamAssassin-ClamAv on FC2

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

[Beginner] SpamAssassin-ClamAv on FC2

Unread post by printecho »

Hi !

I've got Plesk 7.5 on a FC2. I can't activated spamassassin from Plesk because : "Ability to use SpamAssassin Off" but i want to install it by my self.

I launched yum for doing the installation but spamassassin is always installed...
So I do a post in SWsoft's Forum and somebody replied to do a new post here.
After some search, I see that I can find exactly what i want here, but i don't really understand how to do it... I'm a few beginner on *nix :oops:

Finally, I want to install clamav and spamassassin but i've got DrWeb activated and maybe not qmail-scanner...

Can you help me step by step?

I have already change the baseurl in the yum.conf for doing install from ART, but after... I don't know what to do... :oops:

P.E.
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 »

1) Disable and remove Dr. Web. (yum remove drweb-qmail drweb)
2) Make sure ClamAV and SpamAssassin are installed (yum install clamd spamassassin)
3) Make sure clamd and spamd are running (service clamd start; service spamassassin start)
4) Install qmail-scanner (yum install qmail-scanner)
5) Edit the options if you want (in /etc/qmail-scanner.ini) and reconfigure after you have done that (qmail-scanner-reconfigure)
Lemonbit Internet Dedicated Server Management
jamesyeeoc
Forum User
Forum User
Posts: 46
Joined: Thu May 12, 2005 3:50 am
Location: Sunny California

Unread post by jamesyeeoc »

I can't activated spamassassin from Plesk because : "Ability to use SpamAssassin Off" but i want to install it by my self.
Sounds like you want to use the GUI for Spamassassin, but don't have the license for it. If you do have the Plesk license for Spamassassin, then forgive me for misunderstanding your post.

If you have not purchased the Plesk license for the Spamassassin GUI option, then you will only be able to use the SSH command line to edit the SA files, not the GUI.

Many admins get confused between having a software package installed on the server (which may be free), and having the Plesk Control Panel GUI for that software active (which requires a paid license for the GUI). Examples of this are Spamassassin, ColdFusion, and Application Vault.

In the Mail user config screen, if the SA option shows 'off' without underline, then I believe this means you don't have the license for the Plesk SA GUI. (Someone please correct me if I'm wrong)
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

oh no, it doesn't matter if i can't use the GUI.
I just want spamassassin and clamav for all domain and all mail.
That's all.
I don't want to use the GUI for Spamassassin. I use the GUI only for manage domain and pop.
I'm ok for to edit the SA files but i don't know how... I have already change some configuration files by ssh for other thing.
jamesyeeoc
Forum User
Forum User
Posts: 46
Joined: Thu May 12, 2005 3:50 am
Location: Sunny California

Unread post by jamesyeeoc »

Ah, ok. Sorry for not understanding your post.

In that case, you should follow what Breun posted above and you should be fine.
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

ok, i will try.
thks a lot!
:D
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

oh yeah, just a question : is-it possible to disabled clamav and spamassassin for some domain of my server? or for some e-mail adress?
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 »

yes, those settings can be configured from the settings_per_domain.txt file, documentation on how to use it are contained inside.
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 »

I wanted to try this as well and found settings_per_domain.txt as /usr/share/qmail-scanner/settings_per_domain.txt. Editing this file and then recreating the db (using /var/qmail/bin/qmail-scanner-queue.pl -p) doesn't work though. It seems you need to copy settings_per_domain.txt to /var/spool/qscan/ first to be able to use this feature. Is this in the documentation somewhere? I couldn't find it. Couldn't your rpm just put settings_per_domain.txt in /var/spool/qscan/ directly, Scott?

Also, is it necessary to run qmail-scanner-reconfigure after running /var/qmail/bin/qmail-scanner-queue.pl -p? And is it necessary to run service qmail restart after running qmail-scanner-reconfigure? I seem to run those commands out of habit, but started to wonder whether it's actually needed to do so.
Lemonbit Internet Dedicated Server Management
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

It seems I've got a problem here :
3) Make sure clamd and spamd are running (service clamd start; service spamassassin start)

Code: Select all

# service clamd start
Starting Clam AntiVirus Daemon: [ OK ]
# service spamassassin start
Starting spamd:
#
I've got no reply for spamassassin, it means ok or ko?
I prefer to ask you before to continue.

(I tried to stop spamassassin and start after : [ ok ] but just start return nothing)
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

I think it's ok, i find this command :
service spamassassin status
and it return :
spamd (......) is running...

So i try to continue :-)
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

:(

Code: Select all

# yum install qmail-scanner
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 2 - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 2 - Atomic PSA App Vault RPMS
Server: Atomic Rocket Turtle - 2 - SW-Soft PSA 7.5 RPMS
Finding updated packages
Downloading needed headers
Resolving dependencies
.....Unable to satisfy dependencies
Package qmail-scanner needs perl-suidperl, this is not available.
#
... What it means? I've got perl v5.8.3 on my fedora.
I don't know what to do... :cry:
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

you need to install perl-suidperl, it may not be one of your installed packages. You can try installing it via yum..

yum install perl-suidperl
or
up2date -i perl-suidperl

This is what I have installed:
perl-suidperl-2-5.8.0-90.4
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
printecho
Forum User
Forum User
Posts: 17
Joined: Fri Jul 21, 2006 3:32 am

Unread post by printecho »

Panic!!!
The pop is ko...
this the message when i tried to install qmail-scanner :
# yum install qmail-scanner
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 2 - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 2 - Atomic PSA App Vault RPMS
Server: Atomic Rocket Turtle - 2 - SW-Soft PSA 7.5 RPMS
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: qmail-scanner 1:2.01-9.rhfc2.art.noarch]
I will install/upgrade these to satisfy the dependencies:
[deps: daemontools 0.76-1.rhfc2.art.i386]
[deps: tnef 1.2.1-1.rhfc2.art.i386]
[deps: maildrop 1.8.1-2.rhfc2.art.i386]
Is this ok [y/N]: y
Downloading Packages
Getting daemontools-0.76-1.rhfc2.art.i386.rpm
daemontools-0.76-1.rhfc2. 100% |=========================| 55 kB 00:00
Getting qmail-scanner-2.01-9.rhfc2.art.noarch.rpm
qmail-scanner-2.01-9.rhfc 100% |=========================| 337 kB 00:00
Getting tnef-1.2.1-1.rhfc2.art.i386.rpm
tnef-1.2.1-1.rhfc2.art.i3 100% |=========================| 43 kB 00:00
Getting maildrop-1.8.1-2.rhfc2.art.i386.rpm
maildrop-1.8.1-2.rhfc2.ar 100% |=========================| 243 kB 00:00
Running test transaction:
Test transaction complete, Success!
maildrop 100 % done 1/4
tnef 100 % done 2/4
daemontools 100 % done 3/4
qmail-scanner 100 % done 4/4
install: cannot stat `qmail-scanner-queue.pl': No such file or directory
setuidgid: fatal: unable to run /var/qmail/bin/qmail-scanner-queue.pl: file does not exist
setuidgid: fatal: unable to run /var/qmail/bin/qmail-scanner-queue.pl: file does not exist
Installed: qmail-scanner 1:2.01-9.rhfc2.art.noarch
Dep Installed: daemontools 0.76-1.rhfc2.art.i386 tnef 1.2.1-1.rhfc2.art.i386 maildrop 1.8.1-2.rhfc2.art.i386
Transaction(s) Complete
#
when i try to send a mail I've got a "451 qq temporary problem"
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

Have you tried qmail-scanner-reconfigure ?
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
Post Reply