From 14cabd62e56c5f902be79a2deeeee284f678ada1 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 18 Oct 2019 21:21:01 +0200 Subject: [PATCH] Trigger restart of postfix if passwords of mail accounts change --- mail-server/dovecot.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 686c390..eef241d 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -174,5 +174,7 @@ in done chown -R '${dovecot2Cfg.mailUser}:${dovecot2Cfg.mailGroup}' '${stateDir}/imap_sieve' ''; + + systemd.services.postfix.restartTriggers = [ passwdFile ]; }; }