Install spamassassin

Hello,

I’m currently running HestiaCP on Apache + nginx proxy currently. I had spamassasin and I removed it a month ago because emails were not arriving. Now I want to install it again. Because I get tons of spam emails.
How can I add this back to my existing installation without doing a fresh install?
Thanks

Hi @tuton,

How did you removed it? I mean, just apt remove spamassassin or did you modify any Exim or Hestia conf files?

Are you using Debian or Ubuntu? What is the version?

If you didn’t edit any conf file, apt install spamassassin should be enough to get it back but if you modified any conf file, you should do a couple of things, also, depending on the version used you should modify /etc/default/spamd or /etc/default/spamassassin

Thank you for your fast reply and my apology for not providing full detail.

I am pretty sure I used the apt-remove spamassassin command to remove it. I use the apt install spamassassin, and it installs and uncomments. ANTISPAM_SYSTEM=‘spamassassin’

I rebooted the server and tested by sending emails and receiving them, and some emails are not going through. I sent myself an email from a Gmail account and still haven’t arrived at my domain email.

Server version - Ubuntu 22.04 (LTS) x64

Hestia Control Panel v1.8.12 Apache install with nginx proxy

I am missing anything?

sed -i "s/ENABLED=0/ENABLED=1/" /etc/default/spamassassin
sed -i "s/#CRON=1/CRON=1/" /etc/default/spamassassin
systemctl restart spamassassin

But I doubt that is your problem.

Check if the gmail message is arriving to your mail server (replace youraccount by the actual gmail account):

exigrep '<= [email protected]' /var/log/exim4/mainlog*
1 Like

@sahsanu I follow the command you provide, and that works perfect now. Emails arrive with no issue!

Thank you so much. :grinning:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.