bug report: Amavis and Postfix complaining about permission denied.
📝 Preliminary Checks
- [X] I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.
👀 What Happened?
Fresh install with no SSL. Logs repeat failure repeatedly. Ensured that the volumes for postfix and amavis both have the correct ownership and they do. Not really sure how/why
👟 Reproduction Steps
- Install from community Image (which uses latest) currently looks like 14
- Only change hostname parameter
- Set network to br0 and give static IP
- Start container
🐋 DMS Version
14.0.0
💻 Operating System and Architecture
Unraid 6.12.13
⚙️ Container configuration files
Not applicable pretty sure unraid runs via cli
📜 Relevant log output
2024-10-01T04:33:25.762581-07:00 mail postfix/postsuper[18825]: fatal: scan_dir_push: open directory defer: Permission denied
2024-10-01T04:33:25.798093-07:00 mail amavis[18748]: starting. /usr/sbin/amavisd at mail.domain.com amavis-2.13.0 (20230106), Unicode aware, LC_CTYPE="C.UTF-8"
2024-10-01T04:33:25.798137-07:00 mail amavis[18748]: perl=5.036000, user=, EUID: 999 (999); group=(), EGID: 999 999 (999 999)
2024-10-01T04:33:26.016717-07:00 mail amavis[18748]: (!)Net::Server: 2024/10/01-04:33:26 Can't connect to UNIX socket at file /var/lib/amavis/amavisd.sock [Permission denied]\n at line 66 in file /usr/share/perl5/Net/Server/Proto/UNIX.pm
Improvements to this form?
No response
/var/lib/amavis/amavisd.sock
That will be related to /var/mail-state volume mount. Is the volume bind mount to a local file system or is it a network share like NFS / NAS?
open directory defer: Permission denied
Same volume. These permissions are meant to be corrected during fresh container start up. Something in your environment is preventing that.
Ensured that the volumes for postfix and amavis both have the correct ownership and they do.
What is correct to you?
Amavis is simple:
https://github.com/docker-mailserver/docker-mailserver/blob/c29fe3ff0bc888016720536228878b3f19131056/target/scripts/startup/setup.d/mail_state.sh#L93
Postfix is a bit more in-depth:
https://github.com/docker-mailserver/docker-mailserver/blob/c29fe3ff0bc888016720536228878b3f19131056/target/scripts/startup/setup.d/mail_state.sh#L103-L121
This issue has become stale because it has been open for 20 days without activity. This issue will be closed in 10 days automatically unless:
- a maintainer removes the
meta/stalelabel or adds thestale-bot/ignorelabel - new activity occurs, such as a new comment
This issue has become stale because it has been open for 20 days without activity. This issue will be closed in 10 days automatically unless:
- a maintainer removes the
meta/stalelabel or adds thestale-bot/ignorelabel - new activity occurs, such as a new comment
This issue was closed due to inactivity.