I'm trying to build an email server based on Ubuntu, and I want to run SpamAssassin on it. I've followed the instructions, installed it from the repositories, and when I try to start SpamAssassin I get an error message like the following:
Job for spamassassin.service failed because the control process exited with error code.
See "systemctl status spamassassin.service" and "journalctl -xe" for details.
Running sudo systemctl status spamassassin.service gets me the following:
Feb 02 01:43:46 grace systemd[1]: spamassassin.service: Service RestartSec=100ms expired, scheduling restart.
Feb 02 01:43:46 grace systemd[1]: spamassassin.service: Scheduled restart job, restart counter is at 5.
Feb 02 01:43:46 grace systemd[1]: Stopped Perl-based spam filter using text analysis.
Feb 02 01:43:46 grace systemd[1]: spamassassin.service: Start request repeated too quickly.
Feb 02 01:43:46 grace systemd[1]: spamassassin.service: Failed with result 'exit-code'.
Feb 02 01:43:46 grace systemd[1]: Failed to start Perl-based spam filter using text analysis.
I've tried stopping the service and starting it as well as simply restarting it, but it doesn't make a difference. I can't figure out what's going on.
grep spamd /var/log/mail.log(consider adding yourself to theadmgroup so you can read logs withoutsudo). – fkraiem Feb 02 '19 at 07:34Feb 3 08:03:32 grace spamd[10234]: logger: removing stderr method Feb 3 08:03:32 grace spamd[10236]: config: no rules were found! Do you need to run 'sa-update'? Feb 3 08:03:33 grace spamd[10234]: child process [10236] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
So I ran sa-update (I was too impatient to let it finish before -- my bad) but it exits with code 4, meaning it can't find the rules. I've tried a couple of other channels, but no joy.
– Ken Wright Feb 04 '19 at 01:55