mailsystem: dovecot: Grant roundcube user access to dynamic passwd file
This commit is contained in:
parent
1b26a41aaf
commit
cbdbb94512
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ with (import ./common.nix {inherit config;}); let
|
|||
done
|
||||
mv "${dovecotDynamicPasswdFile}-filtered" "${dovecotDynamicPasswdFile}"
|
||||
|
||||
${lib.optionalString cfg.roundcube.enable ''
|
||||
# Ensure roundcube has access to dynamic passwd file
|
||||
${pkgs.acl.bin}/bin/setfacl -m "u:${config.services.phpfpm.pools.roundcube.user}:rw" "${dovecotDynamicPasswdFile}"
|
||||
''}
|
||||
|
||||
# Prepare userdb-file
|
||||
cat <<EOF > "${userdbFile}"
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList genUserdbEntry cfg.accounts)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue