Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP mail() function failing to send mail

tencip
Guest
 
Posts: n/a
#1: Sep 19 '05
Hi everyone,

Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host
environment, 2 jails.

Our problem: While we can send email from the command line just fine
in one of the jails, we cannot use the php mail() command to send email
using sendmail at all. The function, when executed, does absolutely
nothing. No error, no reports to the maillog, nothing.

I've read somewhere that it's "not possible" to send mail using the php
mail() function within a freebsd jail, but i'm nearly certain we have
it working this way on another server, but can't seem to figure out the
issue.

Anyone know any tests we can do to learn more?

Thanks.


Bugz
Guest
 
Posts: n/a
#2: Sep 20 '05

re: PHP mail() function failing to send mail


Check out the log messages from your sendmail...
If it's not logging anything, try increasing (temporarily) the log
level (24 should be more than enough)
Probability says that you're running into a permission issue with
sendmail.
Probably your PHP/Apache user is not allowed to relay email.

I'm not sure this might apply since I am not familiar to BSD, but, had
similar problems with a RH machine just a few days ago

Closed Thread