From a9b89fd7b3df1f3d4591c5df020ad4731d97a2c6 Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sat, 7 Jun 2025 13:06:23 +0200 Subject: [PATCH] Update instructions for Dovecot 2.4 --- plugins/proxy-auth/README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/plugins/proxy-auth/README.md b/plugins/proxy-auth/README.md index 7a3004d70..ec938ecb5 100644 --- a/plugins/proxy-auth/README.md +++ b/plugins/proxy-auth/README.md @@ -29,26 +29,25 @@ This concludes the setup of SnappyMail. In Dovecot, you need to enable Master User. Enable ```!include auth-master.conf.ext``` in /etc/dovecot/conf.d/10-auth.conf. -The file /etc/dovecot/conf.d/auth-master.conf.ext should contain: +In Dovecot 2.3, the file /etc/dovecot/conf.d/auth-master.conf.ext should contain: ``` -# Authentication for master users. Included from auth.conf. - -# By adding master=yes setting inside a passdb you make the passdb a list -# of "master users", who can log in as anyone else. -# - -# Example master user passdb using passwd-file. You can use any passdb though. passdb { driver = passwd-file master = yes args = /etc/dovecot/master-users - - # Unless you're using PAM, you probably still want the destination user to - # be looked up from passdb that it really exists. pass=yes does that. pass = yes } ``` +In Dovecot 2.4, the file /etc/dovecot/conf.d/auth-master.conf.ext should contain: +``` +passdb passwd-file { + master = yes + passwd_file_path = /etc/dovecot/master-users + result_success = continue +} +``` + You then need to create a master user in /etc/dovecot/master-users: ``` admin:PASSWORD::::::allow_nets=local,172.17.0.0/16