Hi @maisondasilva,
Hestia doesn’t include a complete process to disable those services but you can do this as root to disable them:
Note: Before doing any change, backup at least the file /usr/local/hestia/conf/hestia.conf
Warning: as this is not a supported method by Hestia, use at your own risk.
1.- To disable the services:
bind9
v-change-sys-config-value DNS_SYSTEM ""
systemctl disable named
systemctl stop named
clamav-daemon
v-change-sys-config-value ANTIVIRUS_SYSTEM ""
systemctl disable clamav-daemon
systemctl stop clamav-daemon
dovecot
v-change-sys-config-value IMAP_SYSTEM ""
systemctl disable dovecot
systemctl stop dovecot
exim4
v-change-sys-config-value MAIL_SYSTEM ""
systemctl disable exim4
systemctl stop exim4
spamassassin For Debian 12
v-change-sys-config-value ANTISPAM_SYSTEM ""
systemctl disable spamd
systemctl stop spamd
spamassassin For Debian 10, 11 or Ubuntu 20.04, 22.04
v-change-sys-config-value ANTISPAM_SYSTEM ""
systemctl disable spamassassin
systemctl stop spamassassin
2.- To enable the services again:
bind9
systemctl enable named
systemctl start named
v-change-sys-config-value DNS_SYSTEM "bind9"
clamav-daemon
systemctl enable clamav-daemon
systemctl start clamav-daemon
v-change-sys-config-value ANTIVIRUS_SYSTEM "clamav-daemon"
dovecot
systemctl enable dovecot
systemctl start dovecot
v-change-sys-config-value IMAP_SYSTEM "dovecot"
exim4
systemctl enable exim4
systemctl start exim4
v-change-sys-config-value MAIL_SYSTEM "exim4"
spamassassin For Debian 12
systemctl enable spamd
systemctl start spamd
v-change-sys-config-value ANTISPAM_SYSTEM "spamd"
spamassassin For Debian 10, 11 or Ubuntu 20.04, 22.04
systemctl enable spamassassin
systemctl start spamassassin
v-change-sys-config-value ANTISPAM_SYSTEM "spamassassin"
Disclaimer: some services could require modifying its conf file. For example, if you want to disable clamav and spamassassin but not exim4.
Edit: I used bind9
as service but it is actually named
so I’ve fixed it.
Cheers,
sahsanu