From 492a90f1c94fca326e60ac1e722eb8bb3cf62bb4 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Wed, 7 Sep 2016 01:39:18 +0000 Subject: dovecot service: require mail{User,Group} with sieveScripts fixes #17702. --- nixos/modules/services/mail/dovecot.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/services/mail/dovecot.nix') diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix index f239dda564a..e79d5dadd82 100644 --- a/nixos/modules/services/mail/dovecot.nix +++ b/nixos/modules/services/mail/dovecot.nix @@ -271,6 +271,9 @@ in { assertion = cfg.showPAMFailure -> cfg.enablePAM; message = "dovecot is configured with showPAMFailure while enablePAM is disabled"; } + { assertion = (cfg.sieveScripts != {}) -> ((cfg.mailUser != null) && (cfg.mailGroup != null)); + message = "dovecot requires mailUser and mailGroup to be set when sieveScripts is set"; + } ]; }; -- cgit 1.4.1