Fri 2 Nov 2007
Fedora Core 7 – PHP can’t send mail
Posted by Robert under Linux , Open Source Software , Security[3] Comments
I’m hunting down an issue on Fedora Core 7 where PHP5 can’t send mail using sendmail or postfix. In /var/log/httpd/access_log we are getting sh: /usr/sbin/sendmail: Permission denied every time the mail() function is accessed, and postfix never sees any connection. This is being caused by SELinux blocking Apache from transitioning from the “httpd” role to the “mta” role – I’m just not sure what the *best* way to fix it is yet. I haven’t seen many posts about this, so stay tuned – I expect to have a fix tomorrow afternoon.
September 4th, 2008 at 3:59 am
i am currently facing the same issue.
Did you find a way to fix this?
many thanks in advance!
September 4th, 2008 at 11:40 pm
Yes I did about 2 days later, and the fix post is sitting in my drafts unfinished, because I’m missing the critical piece – the policy change required… let me see if I can recreate in a VM and post it quick here, cause I kept forgetting to. Thanks!
September 5th, 2008 at 1:56 am
[...] drafted November 3rd, 2007, finally finished and posted much later) As I posted last night, we built a new Fedora Core 7 box [...]