We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Add spamassassin on a working VestaCP installation
Add spamassassin on a working VestaCP installation
Hi,
when I installed VestaCP on my server, almost two years ago, I decided not to install spamassassin.
Now I would like to add it to my running installation and I would like to know which is the "cleanest" way to do it.
Anybody can help me?
Thx.
when I installed VestaCP on my server, almost two years ago, I decided not to install spamassassin.
Now I would like to add it to my running installation and I would like to know which is the "cleanest" way to do it.
Anybody can help me?
Thx.
Re: Add spamassassin on a working VestaCP installation
I think I went through this process before. As I recall, I downloaded the vestacp installer script and followed all spamassassin steps in there manually. Key is that you have to uncomment a line in the exim config file, to say SPAMASSASSIN=YES, so that the lines below that say .ifdef SPAMASSASSIN are evaluated.
This was the process on Ubuntu for example
And then
This was the process on Ubuntu for example
Code: Select all
if [ "$spamd" = 'yes' ]; then
sed -i "s/#SPAM/SPAM/g" /etc/exim4/exim4.conf.template
fi
Code: Select all
if [ "$spamd" = 'yes' ]; then
update-rc.d spamassassin defaults
sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
service spamassassin start
check_result $? "spamassassin start failed"
unit_files="$(systemctl list-unit-files |grep spamassassin)"
if [[ "$unit_files" =~ "disabled" ]]; then
systemctl enable spamassassin
fi
fi