diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 22:42:06 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 22:42:06 +0200 |
commit | 889180abe7142121a03f78fa63798656dddbd4fb (patch) | |
tree | aa5b6fa5473e7273d5f6d6cf3d5a5761ce70f578 /hosts/surtr/email/default.nix | |
parent | 81a72b678b7ae5e68f6952082c75b3d7ce7536cd (diff) | |
download | nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.gz nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.bz2 nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.xz nixos-889180abe7142121a03f78fa63798656dddbd4fb.zip |
surtr: ...
Diffstat (limited to 'hosts/surtr/email/default.nix')
-rw-r--r-- | hosts/surtr/email/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index e2f71c21..f30d9aaf 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix | |||
@@ -287,8 +287,8 @@ in { | |||
287 | dovecotSqlConf = pkgs.writeText "dovecot-sql.conf" '' | 287 | dovecotSqlConf = pkgs.writeText "dovecot-sql.conf" '' |
288 | driver = pgsql | 288 | driver = pgsql |
289 | connect = dbname=email | 289 | connect = dbname=email |
290 | password_query = SELECT NULL as password, user as user, quota_rule FROM imap_user WHERE user = '%u' | 290 | password_query = SELECT NULL as password, 'Y' as nopassword, user, quota_rule, 'dovecot2' as uid, 'dovecot2' as gid FROM imap_user WHERE user = '%u' |
291 | user_query = SELECT user, quota_rule FROM imap_user WHERE user = '%u' | 291 | user_query = SELECT user, quota_rule, 'dovecot2' as uid, 'dovecot2' as gid FROM imap_user WHERE user = '%u' |
292 | iterate_query = SELECT user FROM imap_user | 292 | iterate_query = SELECT user FROM imap_user |
293 | ''; | 293 | ''; |
294 | in '' | 294 | in '' |
@@ -332,12 +332,10 @@ in { | |||
332 | userdb { | 332 | userdb { |
333 | driver = sql | 333 | driver = sql |
334 | args = ${dovecotSqlConf} | 334 | args = ${dovecotSqlConf} |
335 | default_fields = uid=dovecot2 gid=dovecot2 nopassword | ||
336 | } | 335 | } |
337 | passdb { | 336 | passdb { |
338 | driver = sql | 337 | driver = sql |
339 | args = ${dovecotSqlConf} | 338 | args = ${dovecotSqlConf} |
340 | default_fields = uid=dovecot2 gid=dovecot2 nopassword | ||
341 | } | 339 | } |
342 | 340 | ||
343 | mail_plugins = $mail_plugins quota | 341 | mail_plugins = $mail_plugins quota |