How to install ClamAV and SpamAssassin on a RHEL or CentOS

 

CentOS, ClamAV, ClamAV installation, Control panel, Exim configuration, Hosting Control Panel, install, RHEL, SpamAssassin, SpamAssassin installation, Vesta, Vesta configuration, Vesta Control Panel, Vesta CP, vestacp, Web Hosting Control Panel, How to install ClamAV and SpamAssassin on a RHEL or CentOS, Hostripples Web Hosting

This tutorial is created for servers with less than 3Gb of ram avaialbe. On “big” servers installation is fully automatic.

* ClamAV installation

yum install clamd
wget http://c.vestacp.com/0.9.8/rhel/clamd.conf -O /etc/clamd.conf
wget http://c.vestacp.com/0.9.8/rhel/freshclam.conf -O /etc/freshclam.conf
gpasswd -a clam exim
gpasswd -a clam mail
freshclam
chkconfig clamd on
service clamd start

* SpamAssassin installation

yum install spamassassin
chkconfig spamassassin on
service spamassassin start

* Exim configuration

sed -i “s/^#SPAMASSASSIN/SPAMASSASSIN/g” /etc/exim/exim.conf
sed -i “s/^#CLAMD/CLAMD/g” /etc/exim/exim.conf
service exim restart

* Vesta configuration

sed -i “s/ANTIVIRUS.*/ANTIVIRUS_SYSTEM=’clamav’/” /usr/local/vesta/conf/vesta.conf
sed -i “s/ANTISPAM.*/ANTISPAM_SYSTEM=’spamassassin’/” /usr/local/vesta/conf/vesta.conf

 


How to install ClamAV and SpamAssassin on a RHEL or CentOS, Hostripples Web Hosting
Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.
Subscribe Now to stay updated.

Please fill in your email address to get most latest updates.