Re: PHP mail() w/ postfix problem in FC3 FIXED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexander Dalloz wrote:

Am Mo, den 10.01.2005 schrieb Nathaniel Price um 17:21:



I recently did a clean install of FC3 on a server that was running RH8. There were a number of PHP scripts that I had configured to send out email for notices or passwords or the like. However, now that I've upgraded I can't send mail through the mail() command in PHP.

My problem is exactly like what I found here, but unfortunately that question was left unanswerd: https://www.redhat.com/archives/fedora-list/2004-December/msg06708.html

[snip]


The "problem" is SELinux. You will find audit / avc messages in the /var/log/messages syslog log file when you get above mentioned permission denied message in the Apache log. This is because Apache is not allowed to use the Postfix sendmail binary.

http://fedora.redhat.com/docs/selinux-apache-fc3/

Else, if above does not help to modify the default policy, I would think
the question may be best asked on the

Fedora SELinux support list for users & developers.
<fedora-selinux-list@xxxxxxxxxx>

mailing list - if this posting does not come to the real SELinux
professionals' attention.

Alexander




THANK YOU so much! Disabling SELinux protection for apache fixed the problem. I'll go through the documentation you mentioned to see what I can do to use SELinux with apache while still using postfix's sendmail interface for mail.

Nathaniel


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux