免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2629 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] PHP mail() function + postFix + FreeBSD [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-17 16:25 |只看该作者 |倒序浏览
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!

论坛徽章:
0
2 [报告]
发表于 2008-12-17 17:43 |只看该作者
太雷了,看不懂英文。整个汉语的吧,好把问题分享一下,以后其他人出了问题也可以参考一下。

论坛徽章:
0
3 [报告]
发表于 2008-12-17 20:31 |只看该作者
应该不是sendmail的事儿, 显示PHP所有的error_reporting, 应该会有一些提示

论坛徽章:
0
4 [报告]
发表于 2008-12-18 10:41 |只看该作者
paste your /etc/rc.conf and /etc/mail/mailer.conf

论坛徽章:
0
5 [报告]
发表于 2008-12-18 10:58 |只看该作者
谢谢各位的回答
问题已经解决

/libexec/ld-elf.so.1: Shared object "libmysqlclient.so.16" not found, required by "sendmail"

把 libmysqlclient.so.16 链接到lib就好了,不过起因不明
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP