fix(mailserver): Add dovecot run directory permission fix
Fix anvil-auth-penalty socket permission issues that caused authentication failures. Ensures /run/dovecot has correct ownership before and after dovecot starts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ca6d4fa160
commit
c379aee903
@ -76,11 +76,22 @@ create_startup_script() {
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Mailserver startup script
|
# Mailserver startup script
|
||||||
|
|
||||||
|
# Ensure dovecot run directory exists with correct permissions
|
||||||
|
# This fixes anvil-auth-penalty socket permission issues
|
||||||
|
mkdir -p /run/dovecot
|
||||||
|
chown -R dovecot:dovecot /run/dovecot
|
||||||
|
chmod 755 /run/dovecot
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
/usr/sbin/rsyslogd
|
/usr/sbin/rsyslogd
|
||||||
sleep 1
|
sleep 1
|
||||||
/usr/sbin/postfix start
|
/usr/sbin/postfix start
|
||||||
/usr/sbin/dovecot
|
/usr/sbin/dovecot
|
||||||
|
|
||||||
|
# Give dovecot a moment to create sockets, then fix permissions
|
||||||
|
sleep 1
|
||||||
|
chown -R dovecot:dovecot /run/dovecot
|
||||||
|
|
||||||
echo "Mail services started"
|
echo "Mail services started"
|
||||||
|
|
||||||
# Keep container running
|
# Keep container running
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user