From 706b74e27f554a3cad9804bca1fc1c19aa947d76 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Thu, 20 Aug 2020 22:56:04 +0200 Subject: [PATCH] Workaround for a new bug in dovecot. This should allow postfixadmin to work again. The bug is described on the Dovecot ML: https://dovecot.org/pipermail/dovecot/2020-August/119642.html --- dovecot.nix | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/dovecot.nix b/dovecot.nix index 0e3180e..97c1e13 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -7,18 +7,28 @@ let password_query = SELECT username AS user, password FROM mailbox WHERE username = '%Lu' AND active='1' user_query = SELECT username AS user FROM mailbox WHERE username = '%Lu' AND active='1' ''; - dovecotConf = pkgs.writeText "dovecot.conf" '' - sendmail_path = /run/wrappers/bin/sendmail - default_internal_user = dovecot2 - default_internal_group = dovecot2 - protocols = imap lmtp pop3 sieve - + dovecotConfSSL = pkgs.writeText "dovecot.conf" '' ${lib.optionalString (config.variables.useSSL) '' ssl = yes ssl_cert = /var/lib/dovecot/ssl-keys.conf + chown root:root /var/lib/dovecot/ssl-keys.conf + chmod 400 /var/lib/dovecot/ssl-keys.conf ''; }; }