Bug #17310 Updated: mail() function has problems with sendmail 8.12

From: Date: Mon, 20 May 2002 16:35:30 +0000
Subject: Bug #17310 Updated: mail() function has problems with sendmail 8.12
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7997@lists.php.net to get a copy of this message
ID: 17310 Updated by: mfischer@php.net Reported By: glen@broadpool.com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: FreeBSD 4.6-RC #5 PHP Version: 4.2.1 New Comment: This is a configuration issue with Sendmail, not with PHP. PHP is just invoking the sendmail binary (which probably isn't setuid for /var/spool/mqueue). Previous Comments: ------------------------------------------------------------------------ [2002-05-20 11:13:36] glen@broadpool.com I recently upgraded my server to PHP 4.1.2 and sendmail 8.12. Once both upgrades were complete, I can no longer send mail using the PHP mail() function. sendmail 8.12 introduced a number a security features. Among these are the fact that the mail queue directory (/var/spool/mqueue) is now has the permissions 0700; i.e., it's not readable or writeable by anyone other than root. It *appears* (I'm not familiar with PHP internals) that the PHP mail() function attempts to chdir to the /var/spool/mqueue directory. When I attempt to send mail using PHP's mail() function, this is the usual result: May 20 08:07:10 virgil sendmail[667]: NOQUEUE: SYSER(www): can not chdir(/var/spool/mqueue/): Permission denied If I relax the permissions on the mqueue directory, that error goes away and a queue file is created; however, sendmail now reports that there is a bogus queue file in the mqueue directory, and refuses to send it (this is another of sendmail's new security features to prevent unauthorized mail). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17310&edit=1

« previous php.bugs (#7997) next »