From f41a3f1d152b9aa7afbba9e9e10153a69149c7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 23 Jan 2022 12:09:30 +0100 Subject: [PATCH] add dove auth listener --- config/services/dovecot.nix | 8 +++++++- config/services/postfix.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/services/dovecot.nix b/config/services/dovecot.nix index ab8e1889..4fdc558c 100644 --- a/config/services/dovecot.nix +++ b/config/services/dovecot.nix @@ -118,7 +118,13 @@ in driver = sql args = /run/secrets/services/dovecot/dovecot-sql.conf.ext } - auth_debug=yes + service auth { + unix_listener /run/dovecot2/auth { + mode = 0660 + user = postfix + group = postfix + } + } ''; user = "dovecot"; group = "dovecot"; diff --git a/config/services/postfix.nix b/config/services/postfix.nix index e619a92c..75073150 100644 --- a/config/services/postfix.nix +++ b/config/services/postfix.nix @@ -41,7 +41,7 @@ smtpd_helo_restrictions = "permit_mynetworks, permit_sasl_authenticated"; smtpd_helo_required = "yes"; smtpd_sasl_type = "dovecot"; - smtpd_sasl_path = "/run/dovecot2/auth-login"; + smtpd_sasl_path = "/run/dovecot2/auth"; smtpd_sasl_auth_enable = "yes"; smtpd_tls_auth_only = "yes"; smtpd_tls_mandatory_protocols = "!SSLv2, !SSLv3, !TLSv1, !TLSv1.1";