Skip to content

Permission issue for postdrop group #694

@camory

Description

@camory

Hello,

I have just updated my docker-compose with the latest version of the image.
Looking at the logs, we can see a repeated error:

mail    | Aug 15 18:25:45 mail postfix/postdrop[2077]: warning: mail_queue_enter: create file maildrop/616458.2077: Permission denied
mail    | Aug 15 18:25:55 mail postfix/postdrop[2077]: warning: mail_queue_enter: create file maildrop/616710.2077: Permission denied
mail    | Aug 15 18:26:05 mail postfix/postdrop[2077]: warning: mail_queue_enter: create file maildrop/616870.2077: Permission denied

The result of postfix check issue is

postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/.
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/pid
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-util.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-global.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-dns.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-tls.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-master.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./sbin/lmtp
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/sbin/./lmtp
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib/x86_64-linux-gnu
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/sasl2
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo

The issue seems that the folder /var/spool/postfix/publicand /var/spool/postfix/maildropare not owned by the group postdrop

I have temporarily fixed the issue with the following command:
chgrp -R postdrop /var/spool/postfix/public /var/spool/postfix/maildrop

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions