summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/surtr/email/default.nix16
1 files changed, 9 insertions, 7 deletions
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 {
288 auth_ssl_username_from_cert = yes 288 auth_ssl_username_from_cert = yes
289 auth_mechanisms = external 289 auth_mechanisms = external
290 290
291 userdb sql { 291 auth default {
292 args = ${pkgs.writeText "dovecot-sql.conf" '' 292 userdb sql {
293 driver = pgsql 293 args = ${pkgs.writeText "dovecot-sql.conf" ''
294 connect = host=localhost dbname=email 294 driver = pgsql
295 user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u' 295 connect = host=localhost dbname=email
296 ''} 296 user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u'
297 default_fields = uid=dovecot2 gid=dovecot2 297 ''}
298 default_fields = uid=dovecot2 gid=dovecot2
299 }
298 } 300 }
299 301
300 mail_plugins = $mail_plugins quota 302 mail_plugins = $mail_plugins quota