php mail() function not working

Keith Mastin kmastin-PzQIwG9Jn9VAFePFGvp55w at public.gmane.org
Tue Oct 7 00:58:07 UTC 2003


> On Sunday 05 October 2003 21:03, Keith Mastin wrote:
>
>> > What are the permissions on your maildrop directory?  In Debian the
>> maildrop  directory is /var/spool/postfix/maildrop/ and these are
>> the permissions:
>> >
>> > drwx-wx--T    2 postfix  postdrop       48 Oct  5 19:02 maildrop
>>
>> I didn't have the sticky bit set. Setting it didn't make a difference.
>> Get this. I set the dir to 777, tried again... still no joy.
>
> Postfix is a very security concious program, security conscious programs
> do  not like 777 permissions and often will puke and die if you set them
> that  way.  Anyway, can't say I've ever had the problem you're
> describing,  officially out of ideas now.
>
>> snafu's with security fixes breaking something. So if apache is ran as
>> apache.shadow-readers, sendmail is root.root and postfix is run as
>> postfix.postdrop, who do I compile php as? Arrgh!
>
> You should compile php as anyone (non-root), few programs should (or
> need to  be) compiled as the root user.

I always compile and make as user kmastin, then do the make install as
root. As it turns out, this whole issue is of permissions between apache
and postfix. Apache doens't have permission to write to the postdrop
directory.


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list