Re: mail command failing
| From: | Mike Wright | Date: | Tue, 29 Jun 2010 17:27:35 +0000 |
| Subject: | Re: mail command failing | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306526@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
On Tue, 2010-06-29 at 10:00 -0700, Mike Wright wrote:Thanks, Ash, but no cigar. Selinux is set disabled. Absolutely baffled and confounded that there doesn't seem to be a way to diagnose the problem. MikeHi all, I'm very puzzled by this. I've been using the php mail command for years but now I can't get it to work and can't figure out how to diagnose the problem. php-5.2.29 on fedora10 with apache 2.2.14. Can this be selinux related?The first ini_set variable you're setting I believe will only work for a Windows server. Aside from that, yes SELinux does prevent the mail command from sending mail by default. I'm using Fedora 11, so I assume it will be similar; there are config tools for setting SELinux policies, or you could even turn it off (not advised on a live server). As a test, try turning it off temporarily just to see if it is the culprit, then you can determine what policy changes need to be made.