How change SELinux context for postfix file on Fedora 20
Hi, I want to change SELinux context for Postfix when I send emails via my localhost web server.
For example I'm using PHP to sending emails to my localhost inbox.
In my web server log appears something like so: open /etc/postfix/main.cf Permission denied
My temporal solution was to change to permissive setenforce 0
, but I think this is not secure.
Exists some way for to set one context for main.cf
?
Thanks !
Do you really need to open main.cf from your web app?
Yes, Recently I had changed sendmail to postfix and when I try to send emails via web, my log file shows me
Permission denied
show me output of this command:
getsebool httpd_can_sendmail
Next try send mail from your webapp, and then show us:
ausearch-m avc -ts recent
Ok, I will try it !