diff options
author | Philipp Kern <pkern@google.com> | 2021-01-03 16:43:56 +0100 |
---|---|---|
committer | Philipp Kern <pkern@google.com> | 2021-02-11 10:12:15 +0100 |
commit | cc625c968dfbc783d8f871da7e2b61f1372dd3f7 (patch) | |
tree | a894fb7222b5184a5ba5a7387f1d0dcab7328680 /nixos | |
parent | 4d4a0b7ccaad49f8ea790ecf6c1f15abd6099b05 (diff) | |
download | nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar.gz nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar.bz2 nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar.lz nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar.xz nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.tar.zst nixlib-cc625c968dfbc783d8f871da7e2b61f1372dd3f7.zip |
nixos/spamassassin: Run sa-compile after updating the rules
sa-compile speeds up processing the rules by compiling them from Perl to C. This needs to be run after every update and is saved in the local state directory by Perl and SpamAssassin version.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/spamassassin.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/spamassassin.nix b/nixos/modules/services/mail/spamassassin.nix index 98d9e925dcd7..036f1bfebd37 100644 --- a/nixos/modules/services/mail/spamassassin.nix +++ b/nixos/modules/services/mail/spamassassin.nix @@ -135,7 +135,10 @@ in User = "spamd"; Group = "spamd"; StateDirectory = "spamassassin"; - ExecStart = "${pkgs.spamassassin}/bin/sa-update --verbose --gpghomedir=%S/spamassassin/sa-update-keys/"; + ExecStart = [ + "${pkgs.spamassassin}/bin/sa-update --verbose --gpghomedir=%S/spamassassin/sa-update-keys/" + "${pkgs.spamassassin}/bin/sa-compile" + ]; ExecStartPost = "+${pkgs.systemd}/bin/systemctl -q --no-block try-reload-or-restart spamd.service"; SuccessExitStatus = "1"; }; |