- 论坛徽章:
- 0
|
Hi all,
I've got some questions concerning the using of the mail() php function
under Freebsd7(amd64) using Postfix as MTA.
Note that I only want to use my Freebsd7 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 root@myserver.com (using root login) towards
me@any.com
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 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:
Freebsd7
mail_version = 2.5.5 (installed via ports)
Here is the Postfix conf:
Stricto "the Postfix instead of Sendmail" tutorial that we can find on
postfix.org, without virtual parameters (not needed here).
PHP 5.2.6 (cli)
The sendmail path in php is set to
/usr/sbin/sendmail -t -i
Any help would be appreciated this is really driving me crazy since 4 days I'm searching a solutions...!
Thanks in advance! |
|