git.iko.soy/typeable/nixpkgs
on master help sign in
dovecot service: require mail{User,Group} with sieveScripts

fixes #17702.

commit492a90f1c94fca326e60ac1e722eb8bb3cf62bb4 authorLangston Barrett <langston.barrett@gmail.com> dateWed 7 Sep 2016, 01:39 (10 years ago) parent39e197a
1 file changed+3
nixos/modules/services/mail/dovecot.nix+3
nixos/modules/services/mail/dovecot.nix+3
@@ -271,6 +271,9 @@ in
271271 { assertion = cfg.showPAMFailure -> cfg.enablePAM;
272272 message = "dovecot is configured with showPAMFailure while enablePAM is disabled";
273273 }
274+ { assertion = (cfg.sieveScripts != {}) -> ((cfg.mailUser != null) && (cfg.mailGroup != null));
275+ message = "dovecot requires mailUser and mailGroup to be set when sieveScripts is set";
276+ }
274277 ];
275278
276279 };