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
This commit is contained in:
stuebinm 2024-03-05 17:03:09 +01:00
parent 55b0b3558d
commit 319e5894e0

View file

@ -195,7 +195,8 @@
bindIP = "[::1]"; 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" = { services.nginx.virtualHosts."mail.hacc.space" = {
enableACME = true; enableACME = true;