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.
If you are following this Ars Technica guide, then you probably have
/etc/default/spamassassin
looking like this:The path expansions of
SAHOME
andSAGLOBALCFGPATH
are failing, so change this file so that it includes the full paths: