From eb3e3132d608b7b8444347d0b7e1a8dd225af20a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 May 2022 19:34:00 +0200 Subject: ... --- hosts/surtr/email/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index 4107df83..eb4ec69e 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix @@ -288,15 +288,14 @@ in { auth_ssl_username_from_cert = yes auth_mechanisms = external - auth default { - userdb sql { - args = ${pkgs.writeText "dovecot-sql.conf" '' - driver = pgsql - connect = host=localhost dbname=email - user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u' - ''} - default_fields = uid=dovecot2 gid=dovecot2 - } + userdb { + driver = sql + args = ${pkgs.writeText "dovecot-sql.conf" '' + driver = pgsql + connect = host=localhost dbname=email + user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u' + ''} + default_fields = uid=dovecot2 gid=dovecot2 } mail_plugins = $mail_plugins quota -- cgit v1.2.3