Skip to content

Commit

Permalink
fix(spam-check): describe install with systemd (#72)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
cleverer and willpower232 authored Sep 13, 2024
1 parent cf45715 commit 623a834
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion content/3.features/spam-and-virus-checking.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 623a834

Please sign in to comment.