State directory doesn't need to be modifiable by mail-user

This commit is contained in:
niten 2023-09-30 19:54:46 -07:00
parent 9d3c86a118
commit c2ad6bf5a1
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ in {
systemd = {
tmpfiles.rules = [
"d ${cfg.state-directory} 0751 ${cfg.mail-user} ${cfg.mail-group} - -"
"d ${cfg.state-directory} 0711 root root - -"
"d ${cfg.mail-directory} 0750 ${cfg.mail-user} ${cfg.mail-group} - -"
"d ${cfg.state-directory}/sieves 0750 ${config.services.dovecot2.user} ${config.services.dovecot2.group} - -"
];