ID: 17310 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Mail related Operating System: FreeBSD 4.6-RC #5 PHP Version: 4.2.1 New Comment:
Damn. I changed /usr/libexec/sendmail/sendmail from setgid to setuid and now everything's working like it's supposed to. Piece of shit software... Previous Comments: ------------------------------------------------------------------------ [2002-05-20 19:09:24] [EMAIL PROTECTED] thanks for your assistance. I guess it is a sendmail problem; I scrapped everything and did a "make world" to reinstall; it's still having problems. I get weirder problems depending upon the command line specified in php.ini. According to the sendmail docs, it's a setgid program, and you should invoke it with "-Ac" which uses submit.cf. However, THAT (which is supposedly the correct way to do thing) seems to cause some problem with NIS; I get repeated "yp_match: RPC timed out" errors when I do that. If I invoke sendmail with "-t -i", it does not appear to respect the end of file; it reads anything input, and then hangs. Anyway, like you said, probably not a PHP problem, though Lord knows I have no idea what else to do. Been working about 16 hours trying to fix this one. Glen ------------------------------------------------------------------------ [2002-05-20 13:44:04] [EMAIL PROTECTED] No doubts, not a PHP issue. ------------------------------------------------------------------------ [2002-05-20 13:38:01] [EMAIL PROTECTED] Try: su - nobody (or whatever your web user id is) and then run the sendmail command configured in your php.ini file. Most likely "sendmail -t -i" on a text file that has the various headers and a body in it. See if that works. My guess is that you will have the same problem in which case PHP is completely out of the picture. ------------------------------------------------------------------------ [2002-05-20 13:28:39] [EMAIL PROTECTED] AAaarrgh. I believe you. I also believe what I'm seeing, which is that sendmail, when invoked by PHP, fails with the error. Perhaps it is a sendmail configuration problem, but I've checked and rechecked it over and over again, and everything appears to match the sendmail/SECURITY document. ------------------------------------------------------------------------ [2002-05-20 12:52:18] [EMAIL PROTECTED] Nowhere in the mail() code do we do a chdir(). We fetch the sendmail_cmd as configured in the php.ini file, play a bit with the mail() function arguments to get them into the right format and then we open a pipe to the configured sendmail_cmd using a popen() call. Then we fprintf() the data to that open pipe and finally pclose(). If something is doing a chdir() it is not PHP. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17310 -- Edit this bug report at http://bugs.php.net/?id=17310&edit=1