From 816b9031af06654821016fac58d8ee446f560b30 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 May 2022 19:33:01 +0200 Subject: ... --- hosts/surtr/email/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'hosts/surtr/email') diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index ba33fe22..4107df83 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix @@ -288,13 +288,15 @@ in { auth_ssl_username_from_cert = yes auth_mechanisms = external - 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 + 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 + } } mail_plugins = $mail_plugins quota -- cgit v1.2.3