docker-mailserver icon indicating copy to clipboard operation
docker-mailserver copied to clipboard

bug report: Amavis and Postfix complaining about permission denied.

Open parmleyhunt opened this issue 1 year ago • 1 comments

📝 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

  1. Install from community Image (which uses latest) currently looks like 14
  2. Only change hostname parameter
  3. Set network to br0 and give static IP
  4. 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

parmleyhunt avatar Oct 01 '24 11:10 parmleyhunt

/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

polarathene avatar Oct 01 '24 19:10 polarathene

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/stale label or adds the stale-bot/ignore label
  • new activity occurs, such as a new comment

github-actions[bot] avatar Oct 22 '24 01:10 github-actions[bot]

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/stale label or adds the stale-bot/ignore label
  • new activity occurs, such as a new comment

github-actions[bot] avatar Nov 19 '24 01:11 github-actions[bot]

This issue was closed due to inactivity.

github-actions[bot] avatar Nov 30 '24 01:11 github-actions[bot]