Make doveadm pw the password hasher
This commit is contained in:
parent
b5808fc1ac
commit
14baefae77
1 changed files with 5 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue