Postfix email delivery fails with `error: postdrop: warning: mail_queue_enter: create file maildrop/xxxxxx.xxxxx: Permission denied`



Error:

When starting the Concurrent Manager getting below error in the log file

Postfix email delivery fails with `error: postdrop: warning: mail_queue_enter: create file maildrop/xxxxxx.xxxxx: Permission denied`


Reason

/usr/sbin/postdrop had incorrect permissions. It had following permissions:

# ll /usr/sbin/postdrop 
-rwxr-xr-x. 1 root postdrop 180808 Feb 13  2023 /usr/sbin/postdrop

While correct permissions are:

# ll /usr/sbin/postdrop 
-rwxr-sr-x. 1 root postdrop 180808 Feb 13  2023 /usr/sbin/postdrop

Resolution

Fix the permissions and user/group ownership on postfix files using following commands

# rpm --setugids postfix
# rpm --setperms postfix

Restart postfix afterwards

# service postfix restart





If you like please follow and comment