summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-05 22:42:06 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-05 22:42:06 +0200
commit889180abe7142121a03f78fa63798656dddbd4fb (patch)
treeaa5b6fa5473e7273d5f6d6cf3d5a5761ce70f578 /hosts/surtr
parent81a72b678b7ae5e68f6952082c75b3d7ce7536cd (diff)
downloadnixos-889180abe7142121a03f78fa63798656dddbd4fb.tar
nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.gz
nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.bz2
nixos-889180abe7142121a03f78fa63798656dddbd4fb.tar.xz
nixos-889180abe7142121a03f78fa63798656dddbd4fb.zip
surtr: ...
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/email/default.nix6
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