diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:34:00 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:34:00 +0200 |
commit | eb3e3132d608b7b8444347d0b7e1a8dd225af20a (patch) | |
tree | 6e56964dcb1aadd7ee8c530474b74f2d2d177a14 /hosts/surtr/email/default.nix | |
parent | 816b9031af06654821016fac58d8ee446f560b30 (diff) | |
download | nixos-eb3e3132d608b7b8444347d0b7e1a8dd225af20a.tar nixos-eb3e3132d608b7b8444347d0b7e1a8dd225af20a.tar.gz nixos-eb3e3132d608b7b8444347d0b7e1a8dd225af20a.tar.bz2 nixos-eb3e3132d608b7b8444347d0b7e1a8dd225af20a.tar.xz nixos-eb3e3132d608b7b8444347d0b7e1a8dd225af20a.zip |
...
Diffstat (limited to 'hosts/surtr/email/default.nix')
-rw-r--r-- | hosts/surtr/email/default.nix | 17 |
1 files 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 { | |||
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 | auth default { | 291 | userdb { |
292 | userdb sql { | 292 | driver = sql |
293 | args = ${pkgs.writeText "dovecot-sql.conf" '' | 293 | args = ${pkgs.writeText "dovecot-sql.conf" '' |
294 | driver = pgsql | 294 | driver = pgsql |
295 | connect = host=localhost dbname=email | 295 | connect = host=localhost dbname=email |
296 | user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u' | 296 | user_query = SELECT mailbox AS user, quota_rule FROM mailbox WHERE mailbox = '%u' |
297 | ''} | 297 | ''} |
298 | default_fields = uid=dovecot2 gid=dovecot2 | 298 | default_fields = uid=dovecot2 gid=dovecot2 |
299 | } | ||
300 | } | 299 | } |
301 | 300 | ||
302 | mail_plugins = $mail_plugins quota | 301 | mail_plugins = $mail_plugins quota |