My WordPress show me a debug message "Could not instantiate mail function."
So I check /var/log/maillog and find follow message:
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.
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.