Have you a VestaCP Spam issue? Vesta Control Panel, VestaCP for friends, is an open source hosting control panel, which can be used to manage multiple websites, also to create and manage email accounts, FTP accounts, and MySQL databases, DNS records and more.
VestaCP. You got email SPAM or you got nothing
All core functionalities included in VestaCP are free. Firewall, DNS server, Web server, Mail server, database and FTP, backup and cron. Vesta gives you full control at your fingertips, and a built-in website analytics systems provide a whole range of information.
Also, the built-in firewall resolves all common issues. It’s packed with enterprise-class features. For example, it comes with smart filters for various services (Apache, Exim, ssh, etc) in order to ban any host IP address that makes too many login attempts. All the info at the official website of VestaCP.
VestaCP uses latest and greatest versions and depending on available system resources it delivers optimized configuration for Low/Medium/High RAM server types. For this reason, on a system with less than 3GB of RAM memory, it doesn’t install the anti-spam and the anti-virus systems and shows a VestaCP Spam issue.
So, if this is your case (servers with less than 3GB of RAM available. On “big” servers installation is fully automatic), take a look on how to install these things.
How to install ClamAV and SpamAssassin on a Debian or Ubuntu
Here, the explanation for Debian and Ubuntu systems. If you need instructions for RHEL or CentOS servers, just go to the official documentation at this page.
First, install ClamAV:
apt-get install clamav-daemon
wget http://c.vestacp.com/0.9.8/ubuntu/clamd.conf -O /etc/clamav/clamd.conf
gpasswd -a clamav mail
gpasswd -a clamav Debian-exim
update-rc.d clamav-daemon defaults
service clamav-daemon restart
Second, install SpamAssassin:
apt-get install spamassassin
update-rc.d spamassassin defaults
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
service spamassassin restart
Third, the Exim configuration:
sed -i "s/^#SPAMASSASSIN/SPAMASSASSIN/g" /etc/exim4/exim4.conf.template
sed -i "s/^#CLAMD/CLAMD/g" /etc/exim4/exim4.conf.template
sed -i "s/^#SPAM_SCORE/SPAM_SCORE/g" /etc/exim4/exim4.conf.template
service exim4 restart
Finally, some tweaks on VestaCP configuration files:
sed -i "s/ANTIVIRUS.*/ANTIVIRUS_SYSTEM='clamav-daemon'/" /usr/local/vesta/conf/vesta.conf
sed -i "s/ANTISPAM.*/ANTISPAM_SYSTEM='spamassassin'/" /usr/local/vesta/conf/vesta.conf
Finally, a restart isn’t needed because we don’t use a Windows system.