Forum Moderators: coopster

Message Too Old, No Replies

PHP PEAR Mail not sending to anywhere

chrooted Apache 2.2.16

         

miber

2:02 pm on Jul 12, 2011 (gmt 0)

10+ Year Member



Hi,

Im trying to send an email from my PHP code running within a chrooted apache2 server on Ubuntu 10.10. I copied the /usr/share/php/* into the chroot and the script runs through without any error.

PHP finds the includes (Mail.php, Mail/mime.php), PHP finds the mime-class and appears to send the mail.PEAR::IsError() is not reporting an error.

However the (separate) mail-server is not even recognising that someone tried to send an email (no trace in any mail-server or syslog logfile).

apache-/PHP-/syslog logfiles do not show an error.

There is a local postfix installed as well, but not running (manually stopped).

I believe that PEAR-mail is using native PHP to send the email, and is therefore not requiring anything else in the chroot, right?

Same script on another server (where apache is not in jail) is working fine.

Any idea?

coopster

3:04 pm on Aug 31, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, miber.

PHP uses the sendmail binary on your server. You may need to check configuration settings in your sendmail handler on the server. Check your logs for details.
[php.net...]