Yes faris, it's available only on Plesk 12 I believe.
I've kinda worked it out with some help from the Plesk forums (Here:
http://forum.sp.parallels.com/threads/c ... ost-768579)
Just incase anyone else has the same issue as me, this is what I did starting with Plesk's Qmail and Spamassassin installed via the control panel. If ye forum gurus spot anything I left out, or a mistake I made, please let me know. Its the only way we learn
Next, from terminal I ran
yum install clamd followed by
yum install qmail-scanner.
At this stage clamd won't work out of the box. When you run the freshclam command for the first time you'll get this error:
Code: Select all
# freshclam
ERROR: Please edit the example config file /etc/freshclam.conf
ERROR: Can't open/parse the config file /etc/freshclam.conf
So you need to edit the
/etc/freshclam.conf file and comment out the word
Example. Then when you re-run the freshclam command this error will come up:
Code: Select all
# freshclam
ERROR: Can't create temporary directory /var/clamav/clamav-f6df56085fdcc627fea887a8a0c30c1d.tmp
Hint: The database directory must be writable for UID 492 or GID 494
# ERROR: Can't create temporary directory /var/clamav/clamav-f6df56085fdcc627fea88
So to fix this you need to set the permissions for writing to that folder, to the user qscand using this command, replacing UID and GID with the ones displayed in your error message:
Code: Select all
# chown -R UID:GID /var/clamav
# chmod -R 755 /var/clamav
Ok, third time of running the freshclam command is the charm, although you might see these errors during the first database update:
Code: Select all
ClamAV update process started at Tue Nov 25 17:56:12 2014
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
ERROR: Can't open /var/clamav/mirrors.dat for writing
Downloading daily-19680.cdiff [100%]
ERROR: Can't open /var/clamav/mirrors.dat for writing
daily.cld updated (version: 19680, sigs: 1274659, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 242, sigs: 46, f-level: 63, builder: dgoddard)
ERROR: Can't open /var/clamav/mirrors.dat for writing
Database updated (3698930 signatures) from db.us.clamav.net (IP: 194.8.197.22)
But don't worry, that is only because those files don't exist yet, until freshclam runs for the first time.
Next you need to run the
service clamd start command, which will bring up this error:
Code: Select all
# service clamd start
Starting Clam AntiVirus Daemon: ERROR: Please edit the example config file /etc/clamd.conf
ERROR: Can't open/parse the config file /etc/clamd.conf
[FAILED]
Again to fix this, you need to edit the
/etc/clamd.conf file and comment out the word
Example. Also locate the line
TCPSocket 3310 and uncomment it. That will help you avoid this error:
Code: Select all
# service clamd start
Starting Clam AntiVirus Daemon: ERROR: Please define server type (local and/or TCP).
[FAILED]
After that, to finish the install I ran the following commands:
Code: Select all
# chkconfig clamd on
# freshclam -d -c 2
# qmail-scanner-reconfigure
Reconfiguring spamassassin settings: Done
Reconfiguring clamav settings: Done
Configuring qmail-scanner: OK
And that, he says fingers crossed, should do it.
Incidentally, I haven't changed anything else in the standard out-of-the-box configuration files. Mostly because I have no-idea what most of it does.