Make doveadm pw the password hasher

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-22 15:29:32 +01:00
parent b5808fc1ac
commit 14baefae77
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5

View file

@ -1,4 +1,4 @@
{ ... }: { { pkgs, ... }: {
services.postfixadmin = { services.postfixadmin = {
enable = true; enable = true;
adminEmail = "lotte@chir.rs"; adminEmail = "lotte@chir.rs";
@ -10,6 +10,10 @@
}; };
hostName = "mail.chir.rs"; hostName = "mail.chir.rs";
setupPasswordFile = "/run/secrets/services/postfixadmin/setupPassword"; setupPasswordFile = "/run/secrets/services/postfixadmin/setupPassword";
extraConfig = ''
$CONF['encrypt'] = 'dovecot:argon2id';
$CONF['dovecotpw'] = '${pkgs.dovecot}/bin/doveadm pw';
'';
}; };
sops.secrets."services/postfixadmin/dbpassword" = { sops.secrets."services/postfixadmin/dbpassword" = {
owner = "postfixadmin"; owner = "postfixadmin";