Plesk 12 and ClamAV

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Plesk 12 and ClamAV

Unread post 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?
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Plesk 12 and ClamAV

Unread post by prupert »

What about installing qmail-scanner (with SpamAssassin, ClamAV, DCC, Razor and Pyzor) from the Atomic channel?
Lemonbit Internet Dedicated Server Management
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post 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.
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post 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.
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Plesk 12 and ClamAV

Unread post 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?
Lemonbit Internet Dedicated Server Management
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post 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).
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 12 and ClamAV

Unread post by scott »

Really? I'm not seeing it on the plesk 12 systems running qmail here. Where is it under?
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post by laughingbuddha »

Where's what?
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Plesk 12 and ClamAV

Unread post by scott »

You were saying that plesk had an option to install qmail-scanner
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post by laughingbuddha »

Well the qmail mail service, yes.
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
AntiochInteractive
Forum User
Forum User
Posts: 35
Joined: Thu Jan 08, 2009 4:31 am
Location: Fort Worth, TX
Contact:

Re: Plesk 12 and ClamAV

Unread post 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.
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Plesk 12 and ClamAV

Unread post 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.
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
Post Reply