fix: Support `chmod` on `/var/log/mail/*` when dir is empty (#4391)

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Dmitry R. 2025-03-04 03:28:15 +06:00 committed by GitHub
parent 807f4f7118
commit 1756ba04fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file. The format
> **Note**: Changes and additions listed here are contained in the `:edge` image tag. These changes may not be as stable as released changes. > **Note**: Changes and additions listed here are contained in the `:edge` image tag. These changes may not be as stable as released changes.
### Fixes
- **Postfix:**
- `setup email restrict` generated configs now only prepend to `dms_smtpd_sender_restrictions` ([#4379](https://github.com/docker-mailserver/docker-mailserver/pull/4379))
- **Internal:**
- A permissions fix for `/var/log/mail` that was [added in DMS v15]((https://github.com/docker-mailserver/docker-mailserver/pull/4374)) no longer encounters an error when no log files are present during a container restart, such as with a `tmpfs` volume mount ([#4391](https://github.com/docker-mailserver/docker-mailserver/pull/4391))
## [v15.0.0](https://github.com/docker-mailserver/docker-mailserver/releases/tag/v15.0.0) ## [v15.0.0](https://github.com/docker-mailserver/docker-mailserver/releases/tag/v15.0.0)
### Breaking ### Breaking

View File

@ -144,5 +144,5 @@ function __log_fixes() {
# Volume permissions should be corrected: # Volume permissions should be corrected:
# https://github.com/docker-mailserver/docker-mailserver-helm/issues/137 # https://github.com/docker-mailserver/docker-mailserver-helm/issues/137
chmod 755 /var/log/mail/ chmod 755 /var/log/mail/
chmod 640 /var/log/mail/* find /var/log/mail/ -type f -exec chmod 640 {} +
} }