On a fresh
Ubuntu 18.04 Server on Scalway the installation fails, it stops after
Updating system packages... Installing system packages... Initializing system random number generator... Firewall is active and enabled on system startup Installing nsd (DNS server)... Installing Postfix (SMTP server)... Installing Dovecot (IMAP server)... Installing OpenDKIM/OpenDMARC... Installing SpamAssassin..
So I debugged the issue. It fails on the following line in
sudo -u spampd /usr/bin/sa-learn --sync 2>/dev/null
It can be fixed by adding the following line. Edit using
root ALL=(ALL) ALL
Just posting it here in case anyone faces the same issue.
This is probably linked to