Bug #17310: mail() function has problems with sendmail 8.12
| From: | glen at broadpool dot com | Date: | Mon, 20 May 2002 15:13:36 +0000 |
| Subject: | Bug #17310: mail() function has problems with sendmail 8.12 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7992@lists.php.net to get a copy of this message | ||
From: glen@broadpool.com
Operating system: FreeBSD 4.6-RC #5
PHP version: 4.2.1
PHP Bug Type: Mail related
Bug description: mail() function has problems with sendmail 8.12
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 bug report at http://bugs.php.net/?id=17310&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17310&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17310&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17310&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17310&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17310&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17310&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17310&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17310&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17310&r=globals