From f5d2122fd37232a2a83d418b9abef65514617d2f Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Mon, 16 Feb 2026 16:02:27 +0100 Subject: [PATCH] fix(mailserver): Ensure dovecot users file is readable Add permission fix for /etc/dovecot/users in startup script. Without this, dovecot auth fails with "Permission denied" when trying to read the passwd-file for LMTP delivery. Co-Authored-By: Claude Opus 4.5 --- .../secubox-app-mailserver/files/usr/sbin/mailserverctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/secubox/secubox-app-mailserver/files/usr/sbin/mailserverctl b/package/secubox/secubox-app-mailserver/files/usr/sbin/mailserverctl index 93457f67..77965444 100644 --- a/package/secubox/secubox-app-mailserver/files/usr/sbin/mailserverctl +++ b/package/secubox/secubox-app-mailserver/files/usr/sbin/mailserverctl @@ -85,6 +85,9 @@ mkdir -p /run/dovecot chown -R dovecot:dovecot /run/dovecot chmod 755 /run/dovecot +# Ensure dovecot users file is readable (fixes LMTP lookup errors) +[ -f /etc/dovecot/users ] && chmod 644 /etc/dovecot/users && chown root:dovecot /etc/dovecot/users + # Start services /usr/sbin/rsyslogd sleep 1