• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Postfix Error or Plesk Repair Error?

G J Piper

Regular Pleskian
TITLE:
Postfix Error or Plesk Repair Error?
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
CentOS 6.8, Plesk Onyx 17.0.17r21
PROBLEM DESCRIPTION:
When restarting postfix, this warning shows up in the error logs about incorrect permissions:
postfix/postfix-script[7780]: warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop

The postfix warning is fixed by running "postfix set-permissions"

When running the "plesk repair" utility afterward, it gives this message:
Reconfiguring the Plesk installation
Checking the Plesk database using the native database server tools .. [OK]
Checking the structure of the Plesk database ........................ [OK]
Checking the consistency of the Plesk database ...................... [OK]
Checking system users ............................................... [OK]
Checking Linux system files
There are incorrect permissions on some items: /usr/sbin/postdrop . [ERROR]
To see more details, run the command in the verbose mode: plesk repair fs -verbose
Checking virtual hosts' file system ................................. [OK]
Repairing web server configuration .................................. [OK]
Checking the usage of PHP handlers .................................. [OK]
Repairing the mail server configuration ............................. [OK]
Checking the DNS configuration file ................................. [OK]
Restoring DNS server configuration .................................. [OK]
Checking MySQL database servers ..................................... [OK]
Repair databases on available servers ............................... [OK]
Repair database users on available servers .......................... [OK]
Error messages: 1; Warnings: 0; Errors resolved: 0​
STEPS TO REPRODUCE:
Fix Postfix log warnings with "postfix set-permissions"​
ACTUAL RESULT:
Plesk repair utility throws it's own error.​
EXPECTED RESULT:
no error warnings when everything seems to be running fine​
ANY ADDITIONAL INFORMATION:
Fixing the error in Plesk Repair Utility causes the posfix error to resurface.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Unconfirmed:

This is expected behaviour.
Permissions to /usr/sbin/postdrop are changed by Plesk in order to implement Outgoing Antispam Protection.
If you set default permissions to postdrop as Postfix suggests then any user with shell access will be able to send emails using postdrop without being restricted by Plesk outgoing antispam.
On the other side, we are shipping postfix package by OS vendor and do not patch/rebuild it somehow, so we cannot get rid of this warning in logs.
So, permissions suggested by "plesk repair fs" are correct.
 
Back
Top