diff options
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 |