• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue SELinux Blocked PHP mail() sent E-Mail

r1235613

New Pleskian
My WordPress show me a debug message "Could not instantiate mail function."
So I check /var/log/maillog and find follow message:
Code:
Oct 22 00:11:12 s010 postfix/postalias[6432]: fatal: open /etc/postfix/main.cf: Permission denied
Oct 22 00:11:13 s010 journal: plesk sendmail[6433]: handlers_stderr: PASS
Oct 22 00:11:13 s010 journal: plesk sendmail[6433]: PASS during call 'limit-out' handler
Oct 22 00:11:13 s010 journal: plesk sendmail[6433]: Unable to rename '/usr/local/psa/handlers/spool/message4U5A5S' file: Permission denied
Oct 22 00:11:13 s010 journal: plesk sendmail[6433]: System error (/usr/local/psa/handlers/spool/message4U5A5S): No such file or directory
Oct 22 00:11:13 s010 journal: plesk sendmail[6435]: Unable to open temporary file /usr/local/psa/handlers/spool/message4U5A5S (2): No such file or directory

I think it is SELinux problem.
It is Work after I turn off SELinux.

How to fix this problem without turn off SELinux?
I was try restorecon -R -v spool/ but it still not work.
 
Hi r1235613,

Unfortunately, it's invalid.
Could you pls. tell us, WHAT is "invalid" here? The command to RESTORE the SELinux context for a file is correct.

How did you install postfix on your server?
Which operating system do you use?
Which current Plesk version ( incl. #MU ) are you using?
 
Hi r1235613,

did you consider to have a look at the SELinux - log - files, in order to investigate the cause of the blocking?
 
Back
Top