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
|
||||
# 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
|
||||
/usr/sbin/rsyslogd
|
||||
sleep 1
|
||||
/usr/sbin/postfix start
|
||||
/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"
|
||||
|
||||
# Keep container running
|
||||
|
||||
Loading…
Reference in New Issue
Block a user