1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules/services/mail
Philipp Kern 1db74d1150 nixos/spamassassin: Fix network requirement on boot
sa-update currently runs as part of the pre-start script of spamd. The
network is not guaranteed to be online at that point and even if we
were to depend on that, it makes the bootup brittle, as there is a
reliance on SpamAssassin's update server as a startup dependency on
boot.

Refactor the setup to move the pre-start script into its own unit.
This allows to perform the setup task only once. Continuous updates
are already done by sa-update.service triggered by sa-update.timer.
Only run sa-update in case /var/lib/spamassassin is empty.

While we are on it, let sa-update.service depend on the network being
online.
2021-02-11 10:09:45 +01:00
..
clamsmtp.nix
davmail.nix
dkimproxy-out.nix
dovecot.nix nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
dspam.nix
exim.nix
mail.nix
mailcatcher.nix
mailhog.nix
mailman.nix nixos/mailman: remove spurious uwsgi.service dep 2021-01-06 10:44:29 +00:00
mailman.xml nixos/mailman: make Postfix support optional (provided you configure the MTA yourself) 2020-12-14 02:41:30 +03:00
mlmmj.nix
nullmailer.nix
offlineimap.nix
opendkim.nix
opensmtpd.nix
pfix-srsd.nix
postfix.nix nixos/postfix: deprecate services.postfix.useDane 2021-01-14 10:24:31 +00:00
postgrey.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
postsrsd.nix
roundcube.nix roundcube service: Restart on config changes. 2020-11-08 22:20:18 +01:00
rspamd.nix Merge pull request #93293 from tnias/nixos_rspamd_20200716 2020-12-01 13:10:43 +00:00
rss2email.nix
spamassassin.nix nixos/spamassassin: Fix network requirement on boot 2021-02-11 10:09:45 +01:00
sympa.nix