HestiaCP error installation with Spamassasin

                _   _           _   _        ____ ____
               | | | | ___  ___| |_(_) __ _ / ___|  _ \
               | |_| |/ _ \/ __| __| |/ _` | |   | |_) |
               |  _  |  __/\__ \ |_| | (_| | |___|  __/
               |_| |_|\___||___/\__|_|\__,_|\____|_|

                          Hestia Control Panel
                                  1.9.3
                            www.hestiacp.com

========================================================================

Thank you for downloading Hestia Control Panel! In a few moments,
we will begin installing the following components on your server:

   - NGINX Web / Proxy Server
   - Apache Web Server (as backend)
   - Multi-PHP Environment: Version php5.6 php7.0 php7.1 php7.2 php7.2 php7.3 php7.4 php8.0 php8.1 php8.2 php8.3 php8.4
   - Bind DNS Server
   - Exim Mail Server + SpamAssassin
   - Dovecot POP3/IMAP Server+ Sieve
   - MySQL8 Database Server
   - PostgreSQL Database Server
   - ProFTPD FTP Server
   - Web terminal
   - Firewall (iptables) + Fail2Ban Access Monitor

========================================================================


Would you like to continue with the installation? [y/N]: y
Installation backup directory: /root/hst_install_backups/230620252240
Installation log file: /root/hst_install_backups/hst_install-230620252240.log

Adding required repositories to proceed with installation:

[ * ] NGINX
[ * ] PHP
[ * ] Hestia Control Panel
[ * ] Node.js 20
[ * ] PostgreSQL

Updating currently installed packages, please wait...-
The installer is now downloading and installing all required packages.
NOTE: This process may take 10 to 15 minutes to complete, please wait...
/var/cache/debconf/tmp.ci/postgresql.config.aOEWjL: 12: pg_lsclusters: not found


========================================================================

[ * ] Configuring system settings...
info: Adding user `hestiamail' to group `hestia-users' ...
[ * ] Configuring Hestia Control Panel...
[ * ] Configuring OpenSSL to improve TLS performance...
[ * ] Generating default self-signed SSL certificate...
[ * ] Adding SSL certificate to Hestia Control Panel...
[ * ] Enabling SFTP jail...
[ * ] Enabling SSH jail...
[ * ] Creating default admin account...
[ * ] Configuring NGINX...
[ * ] Updating Cloudflare IP Ranges for Nginx...
[ * ] Configuring Apache Web Server...
[ * ] Installing PHP 5.6...
[ * ] Installing PHP 7.0...
[ * ] Installing PHP 7.1...
[ * ] Installing PHP 7.2...
[ * ] Installing PHP 7.2...
[ * ] Installing PHP 7.3...
[ * ] Installing PHP 7.4...
[ * ] Installing PHP 8.0...
[ * ] Installing PHP 8.1...
[ * ] Installing PHP 8.2...
[ * ] Installing PHP 8.3...
[ * ] Installing PHP 8.4...
[ * ] Configuring PHP-FPM 8.3...
[ * ] Configuring PHP...
[ * ] Configuring ProFTPD server...
Synchronizing state of proftpd.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable proftpd
[ * ] Configuring MySQL database server...
[ * ] Installing phpMyAdmin version v5.2.2...
[ * ] Configuring PostgreSQL database server...
[ * ] Configuring Bind DNS server...
[ * ] Configuring Exim mail server...
[ * ] Configuring Dovecot POP/IMAP mail server...
[ * ] Configuring SpamAssassin...
sed: can't read /etc/default/spamd: No such file or directory
Failed to start spamd.service: Unit spamd.service not found.
Error: spamd start failed
root@armbian:~#

Help me to fix this

Show the output of these commands:

ls -l /etc/default/spamd
dpkg -l | grep -E '^ii\s*spam'

Can I install Spamassasin after hestiacp is installed? because I have repeatedly reinstalled the OS and hestiacp almost 15 times. and it only seems stable and does not fail after I Uncheck Spamassasin and DiskQuota for the installation bash script? if not. the installation will continue to fail.

What OS are you using?