2007/4/24, Gregory ESNAUD-FREE <[EMAIL PROTECTED]>:
Hi World,
I've got some questions concerning the using of the mail() php function
under OpenBSD using Postfix as MTA.
Note that I only want to use my OpenBSD Postfix Server as a mail sender
for fogotten password of my web site ^^
First, the "mail" shell command works very well. I receive test mails
from [EMAIL PROTECTED] (using root login) towards
[EMAIL PROTECTED]
Second, the PHP cli (you know under shell) on a php script containing
the mail() php function works very well too (always under root login)
BUT, when i browsing (via FireFox or IE) and I clik on my button "send
my password", nothing happen !! It's like the www users can't use the
/usr/sbin/sendmail...
Note that the script behind the html button is excatly the same I use
with the php line command and that nothing appears in /var/log/messages
or Maillog
Here is versions used:
OPENBSD 3.9
postfix-2.2.8p1 (installed via ports of ftp://bsd)
php-4.0
Do Apache is in chroot? Did you tried to run that php script in chroot?
--
Daniel 'Shinden' Horecki
http://morr.pl