From 623a834ee015a9c73a42b5eb9fb182660c798d19 Mon Sep 17 00:00:00 2001 From: Nicolas Da Mutten Date: Fri, 13 Sep 2024 10:24:52 +0200 Subject: [PATCH] fix(spam-check): describe install with systemd (#72) * fix(spam-check): describe install with systemd Spamassassin on debian does not ship a /etc/default/spamassassin file, so enabling the update task needs to be done using systemctl. * Update spam-and-virus-checking.md --------- Co-authored-by: Will Power <1619102+willpower232@users.noreply.github.com> --- content/3.features/spam-and-virus-checking.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/3.features/spam-and-virus-checking.md b/content/3.features/spam-and-virus-checking.md index 63e71f2..2bac085 100644 --- a/content/3.features/spam-and-virus-checking.md +++ b/content/3.features/spam-and-virus-checking.md @@ -19,7 +19,15 @@ By default, Postal will talk to SpamAssassin's `spamd` using an TCP socket conne sudo apt install spamassassin ``` -Once you have installed this, you will need to open up `/etc/default/spamassassin` and change `ENABLED` to `1` and `CRON` to `1`. On some systems (such as Ubuntu 20.04 or newer), you might need to enable the SpamAssassin daemon with the following command. +#### Systemd systems +On systems that use systemd (e.g. Debian Bookworm), you will need to enable the SpamAssassin timer. It is used to udpate the spam rules (which can be done manually using `sa-update`). + +```shell +systemctl enable --now spamassassin-maintenance.timer +``` + +#### Other systems +On other systems, you will need to open up `/etc/default/spamassassin` and change `ENABLED` to `1` and `CRON` to `1`. On some systems (such as Ubuntu 20.04 or newer), you might need to enable the SpamAssassin daemon with the following command. ```bash update-rc.d spamassassin enable