Merge pull request #18381 from siddharthist/dovecot/mailUser
dovecot service: require mail{User,Group} with sieveScripts
commit4a265a68bd44c7c98389f06f70236e13c674c28f
authorPeter Simons <simons@cryp.to>
dateWed 7 Sep 2016, 10:16 (10 years ago)
parent5f6557d492a90f
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 };