Skip to content

Commit

Permalink
Merge pull request #18381 from siddharthist/dovecot/mailUser
Browse files Browse the repository at this point in the history
dovecot service: require mail{User,Group} with sieveScripts
  • Loading branch information
peti authored Sep 7, 2016
2 parents 5f6557d + 492a90f commit 4a265a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/services/mail/dovecot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
];

};
Expand Down

0 comments on commit 4a265a6

Please sign in to comment.