summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-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