Page 1 of 1

Plesk 12 and ClamAV

Posted: Wed Aug 27, 2014 9:10 pm
by laughingbuddha
Hi all,

I've got a CentOS 6.5 64bit Digital Ocean box running with Plesk 12 install (Web App Edition), and all is fine. I'm running the Plesk Qmail install, but haven't installed Dr Web or SpamAssassin.

Is it possible to install SpamAssassin, either PSA version or other, and ClamAV to handle email virus scanning?

Earlier I did give it ago, uninstalling PSA's qmail, and installing spamassassin plus ClamAV, but I encountered a whole bunch of errors with ClamAV, to do with config life not being configured and more.

I since restored the droplet from a backup.

I remember last time I did this on my server it was very straight forward, but doesn't seem to be this time, as the guide I wrote previously just doesn't work.

Any advice?

Re: Plesk 12 and ClamAV

Posted: Thu Aug 28, 2014 7:46 am
by prupert
What about installing qmail-scanner (with SpamAssassin, ClamAV, DCC, Razor and Pyzor) from the Atomic channel?

Re: Plesk 12 and ClamAV

Posted: Thu Aug 28, 2014 10:46 am
by laughingbuddha
Well this is what I want to know. My current guide that I wrote, which worked ok with Plesk 11 under CentOS 5 and 6 32bit, doesn't seem to work with Plesk 12 under CentOS 6.5 64bit.

In short this is the commands used in the old guide:-

Code: Select all

# wget -q -O - http://www.atomicorp.com/installers/atomic |sh
# yum update
# yum remove drweb-qmail drweb
# yum remove psa-spamassassin
# yum install clamd
# yum install qmail-scanner
# freshclam
# service clamd start
# chkconfig clamd on
# service spamassassin start
# chkconfig spamassassin on
# freshclam –d –c 2
# qmail-scanner-reconfigure
That is the just of it. But it breaks at the point of freshclam. That is where it reports an issue with the configuration file.

I'm not a linux guru, so my know on this is limited.

Re: Plesk 12 and ClamAV

Posted: Thu Aug 28, 2014 10:47 am
by laughingbuddha
Oh and currently it has the PSA Qmail scanner installed, as it is included in Plesk 12, but no Spam Assassin installed or Dr Web.

Re: Plesk 12 and ClamAV

Posted: Fri Aug 29, 2014 11:10 am
by prupert
What do you mean by "PSA Qmail scanner"? Qmail-scanner is not distributed by Plesk.
But it breaks at the point of freshclam.
What breaks, what's the error message?

Re: Plesk 12 and ClamAV

Posted: Fri Aug 29, 2014 8:13 pm
by laughingbuddha
Qmail scanner is now an option in Plesk 12 instead of the defaults. So is there any difference between the one you can download via the Plesk panel (via Updates and Upgrades), compare to the one from ART's yum channel?

In regards to ClamAV, I took a quick look, and it seemed that nothing was configured. In previous installs I've never had to touch the config, and it has worked out of the box so to say. Now it errors out when it tries to start.

Errors I encountered:

Starting Clam AntiVirus Daemon: ERROR: Please edit the example config file /etc/clamd.conf
Starting Clam AntiVirus Daemon: ERROR: Please define server type (local and/or TCP).

Re: Plesk 12 and ClamAV

Posted: Sat Aug 30, 2014 10:26 am
by scott
Really? I'm not seeing it on the plesk 12 systems running qmail here. Where is it under?

Re: Plesk 12 and ClamAV

Posted: Sun Aug 31, 2014 11:46 am
by laughingbuddha
Where's what?

Re: Plesk 12 and ClamAV

Posted: Sun Aug 31, 2014 12:12 pm
by scott
You were saying that plesk had an option to install qmail-scanner

Re: Plesk 12 and ClamAV

Posted: Sun Aug 31, 2014 1:00 pm
by laughingbuddha
Well the qmail mail service, yes.

Re: Plesk 12 and ClamAV

Posted: Sat Feb 07, 2015 1:39 pm
by AntiochInteractive
qmail-scanner is FOR qmail - it is not qmail.

ART's clam av does not work out of the box.

You have two options with qmail-scanner and clamd:

#1) Configure it
#2) Remove it and move on:

Code: Select all

yum remove clamd
qmail-scanner-reconfigure
Suggestion #2 isn't too helpful if you want anti-virus, but for a while I did this until I figured out what I was doing. If anyone is having trouble configuring it, I would be happy to research what I did and post it. I'm being lazy.

Re: Plesk 12 and ClamAV

Posted: Sat Feb 07, 2015 8:36 pm
by laughingbuddha
Dam, this is an old thread. Well needless to say I solve it.

Qmail (which is now optional in Plesk 12) works perfectly. I've since installed spamassassin and clamav, and it is all working perfectly.

The issue was a combination of permissions, and configuring ClamAV and Spamassassin.

Needless to say it works like a dream now, and I can even use the Plesk spam interface to manage spamassassin.

I've also since updated my guide to reflect the changes in Plesk 12.