From 319e5894e005e03e526a5902a44f7f59263ad276 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 5 Mar 2024 17:03:09 +0100 Subject: [PATCH] alps: hopefully fix the startup issue alps frequently fails to start (e.g. during a system activation script) since either its configured imap or smtp servers are not reachable yet (i.e. their process has not yet opened the corresponding port). This should hopefully fix that behaviour: - also set BindsTo, telling systemd to only start alps once the required units have entered "active" state (not just after it has started them) - also require postfix to be present, since that provides smtp --- parsons/mail.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsons/mail.nix b/parsons/mail.nix index 7f4af6e..7d25d7b 100644 --- a/parsons/mail.nix +++ b/parsons/mail.nix @@ -195,7 +195,8 @@ bindIP = "[::1]"; }; - systemd.services.alps.after = [ "dovecot2.service" ]; + systemd.services.alps.after = [ "dovecot2.service" "postfix.service" ]; + systemd.services.alps.bindsTo = [ "dovecot2.service" "postfix.service" ]; services.nginx.virtualHosts."mail.hacc.space" = { enableACME = true;