summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-05 19:33:01 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-05 19:33:01 +0200
commit816b9031af06654821016fac58d8ee446f560b30 (patch)
tree1ea6cb6ac716615e5f9091cecbd7f4b4935f0e6a
parent9e232e1b762e981f1adc26c7bf77931c1b4e5822 (diff)
downloadnixos-816b9031af06654821016fac58d8ee446f560b30.tar
nixos-816b9031af06654821016fac58d8ee446f560b30.tar.gz
nixos-816b9031af06654821016fac58d8ee446f560b30.tar.bz2
nixos-816b9031af06654821016fac58d8ee446f560b30.tar.xz
nixos-816b9031af06654821016fac58d8ee446f560b30.zip
...
-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