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";