(napsal GeminAI podle strucnych poznamek)
Quick Fix: saslauthd Failures in Ubuntu 24.04 LTS
Upgraded to Ubuntu 24.04 LTS and saslauthd won't start, preventing Postfix authentication? The daemon is failing because it cannot reliably create its PID file in the default location while also being configured to place the socket inside Postfix's chroot (/var/spool/postfix/...).
The solution is to use a systemd override to force saslauthd to place its PID file in the same, accessible directory as its socket, and ensure it runs with the necessary group permissions.
🛠️ The Systemd Fix
-
Open the Override Editor:
sudo systemctl edit saslauthd.service -
Add the Configuration Stanza:
Paste this into the editor to specify the correct PID location and the required
saslgroup:[Service] Group=sasl PIDFile=/var/spool/postfix/var/run/saslauthd/saslauthd.pid -
Restart Services:
Save the file, then restart to apply the fix:
sudo systemctl restart saslauthd sudo systemctl restart postfix
This simple configuration adjustment resolves the conflict, allowing saslauthd to start successfully and communicate with Postfix inside its chroot.
Žádné komentáře:
Okomentovat