PHP邮件和sendmail挂起

我试图通过PHP的mail()函数发送邮件,但它挂起脚本。 我试过在命令行上使用sendmail(CentOS 5.8),正如在我读过的很多post中所build议的,但它也挂起。 这就是即时通讯:

sendmail -v [email protected] < message.txt

其中说:

[email protected]... Connecting to [127.0.0.1] via relay...

就是这样。 它挂在那里。

这是来自/ var / log / maillog: logs的最后2000行日志

对于如何继续debugging这个问题,我无能为力,请指教。

我已经卸载了sendmail和postfix,然后再次安装了postfix。 这对我来说是固定的。

我做到了这一点:

 $ yum remove sendmail $ yum remove postfix $ yum install postfix $ service postfix start