mailsystem: Add option extraSettingsFile to allow partial encryption of configuration
Some checks failed
Test / tests (push) Failing after 4m45s
Some checks failed
Test / tests (push) Failing after 4m45s
This commit is contained in:
parent
c1b19d6e33
commit
3a9b2c8b59
4 changed files with 28 additions and 10 deletions
|
|
@ -40,10 +40,10 @@ with (import ./common.nix {inherit config pkgs;}); let
|
|||
umask 077
|
||||
|
||||
# Prepare static passwd-file for system users
|
||||
${pkgs.mailnix}/bin/mailnix ${mailnixCfgFile} generate-static-passdb > "${staticPasswdFile}"
|
||||
${mailnixCmd} generate-static-passdb > "${staticPasswdFile}"
|
||||
|
||||
# Prepare/Update passwd-file for dynamic users
|
||||
${pkgs.mailnix}/bin/mailnix ${mailnixCfgFile} update-dynamic-passdb ${dovecotDynamicPasswdFile} > "${dovecotDynamicPasswdFile}"
|
||||
${mailnixCmd} update-dynamic-passdb ${dovecotDynamicPasswdFile} > "${dovecotDynamicPasswdFile}"
|
||||
|
||||
${lib.optionalString cfg.roundcube.enable ''
|
||||
# Ensure roundcube has access to dynamic passwd file
|
||||
|
|
@ -51,7 +51,7 @@ with (import ./common.nix {inherit config pkgs;}); let
|
|||
''}
|
||||
|
||||
# Prepare userdb-file
|
||||
${pkgs.mailnix}/bin/mailnix ${mailnixCfgFile} generate-userdb > "${userdbFile}"
|
||||
${mailnixCmd} generate-userdb > "${userdbFile}"
|
||||
'';
|
||||
|
||||
genMaildirScript = pkgs.writeScript "generate-maildir" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue