Hi,

I don't know the best way to explain my problem, but here it goes. :)

Dev machine is a  RedHat 6.2 install. Apache 1.3.12 with PHP 4.0.1pl2 and stock
sendmail.

Server is Redhat 6.2 apache 1.3.12 PHP 4.0.1pl2 with  qmail (and vpopmail)

I got a php script that I developed on  the dev machine.. every thing works. 
it calls mail() proper headers and whatnot.. sendmail connects to my server
sends the mail and works. Things here O.K.


Move the web code to the server.  Try the php script. nothing... no erros no
nothing.   I do a 'tail -f' on the qmail log files. nothing shows up... 

I double and tripple check eveyr thing.  /usr/lib/sendmail  is symbolic linked
to /var/qmail/bin/sendmail (the sendmail wrapper naturally). 
/usr/sbin/sendmail --> /var/qmail/bin/sendmail.

I run sendmail manually and it works. run qmail-inject the same way. works. use
-t and -t and -i -t works from command line usr /bin/mail  all works. A-OK. but
via php's mail() call. nothing. nada.  talking to a few ppl on IRC. we dig into
things.

apache is running as use 'nobody'. I think a little... su to root. then so to
nobody.   try to run sendmail, I get this error.


[root@neworder jason]# su nobody
bash$ sendmail
qmail-inject: fatal: read error

Then I was asked to 'strace' sendmail. we find this.

open("/root/.lists", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) 

( I can provide the whole output if one needs it).  

It was determined something about the  env - PATH="$PATH" was needed to be
appeded before apache started up.  I'm still confused on what this actully is.

The command line problem is SOLVED but suING to nobody like this

su - nobody

sendmail works fine. qmail-inject works. /bin/mail works....  Apache started
FROM THAT SESSION still doesn't work... I even went as far as chaging apache's
user to a test user.  apache was started as user 'test' and group 'test' same
result. nothing.


AS other side noted. I ran the   phpinfo() and varified that
/var/qmai/bin/sendmail -t (and other various combinations of switches) was
being used by php.


This problem just doesn't make sence at all.  

the apche installed on my system is the one from readhat 6.2 CD. php is an RPM
I found off the net. And, qmail was DLed in rpm and tar formats (used RPM were
I could to save time and hassel).


As a temporary fix I'm going to install apache (on another port) and php  on
another server with a standard sendmail install.  So I don't wanna get a
compleate hack but more of a real fix for the problem.... 


Thank you.



--
Jason J. Czerak ([EMAIL PROTECTED])
  Linux Systems Evangelist
  
Jasnik Services, LLC
  http://www.Jasnik.net

Reply via email to