Restarting spamassassin fails

Hello all,

When trying to restart spamassassin form the Hestia Web UI, I see this: Upload and share screenshots and images - print screen online | Snipboard.io

Looking at /var/log/hestia/error.log I see this:
2025-11-25 11:06:32 v-restart-service 'spamassassin' 'yes' [Error 20]

Doing a systemctl status spamassassin' I get this:
Unit spamassassin.service could not be found.

When I am on the Hestia Web UI > Server settings and try to edit the spamassassin service, I do see the contents of /etc/spamassassin/local.cf

I have run out of ideas what is going on >.< Could you please help?

Specifications
Cloud VPS: Hetzner
OS: Ubuntu 24.04.2 LTS
HestiaCP: v1.9.4
Installation command: bash hst-install.sh --port '[REDUCTED]' --hostname $(hostname -f) --email '[REDUCTED]' --apache no --multiphp '7.4,8.2,8.3,8.4' --sieve yes --clamav no --quota yes --username '[REDUCTED]' --password [REDUCTED]

1 Like

Hi,

The service name is spamd:

systemctl restart spamd
systemctl status spamd --no-pager -l
2 Likes

It was that simple >.<
So note to self: When I need to restart the service, I will not use the Web UI that is producing the error and instead use the command line.
Thank you!

2 Likes

That’s a bug. I’ll take a look into it because in Ubuntu 24.04 the service name is spamd instead of spamassassin.

To fix it, just run this command:

v-change-sys-config-value ANTISPAM_SYSTEM spamd
3 Likes

You’re awesome! Thank you! After running that command, both Web UI buttons (restart, stop) work!! :star_struck:

3 Likes

I’ve created this PR:

3 Likes