You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logrotate wants to know which user/group should be used for rotation because by default it's world writable or writable by group which is not "root".
/etc/cron.daily/logrotate:
error: skipping "/var/log/mail/mail.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/mail/rspamd.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
run-parts: /etc/cron.daily/logrotate exited with return code 1
For potential solution #1 - the chart let's you set the securityContext for the pod. But as far as I know, that applies to all of a pod's volumeMounts. So I don't think there is anything the chart can do to change permissions per volume mount. Let me know if there is a way this can be done.
For potential solution #2, you'll need to submit a bug to the docker-mailserver project.
logrotate wants to know which user/group should be used for rotation because by default it's world writable or writable by group which is not "root".
Raising this issue here because the mount is at https://github.com/docker-mailserver/docker-mailserver-helm/blob/master/charts/docker-mailserver/templates/deployment.yaml#L263-L267
Logrotate config is at https://github.com/docker-mailserver/docker-mailserver/blob/1a938dfb15e94f43f1af5ddaf7b8276aba92a825/target/scripts/startup/setup.d/log.sh#L13-L38
Current mount definition
Two potential solutions:
The text was updated successfully, but these errors were encountered: