我在CentOS6,Plesk 10.4上使用PostFix的PHP mail()函数,而我的电子邮件没有传送到特定的地址。 我的个人GMail和Yahoo电子邮件地址从我的服务器收到电子邮件罚款,不会产生错误。 在这里的一个精彩的build议后,我检查了我的邮件日志,这是我看到的错误:
Apr 10 10:26:29 ######### postfix/qmgr[8323]: 19EA21827: from= <[email protected]>, size=645, nrcpt=1 (queue active) Apr 10 10:26:29 ######### postfix-local[8331]: postfix-local: [email protected], [email protected], dirname=/var/qmail/mailnames Apr 10 10:26:29 ######### postfix-local[8331]: cannot chdir to mailname dir name: No such file or directory Apr 10 10:26:29 ######### postfix-local[8331]: Unknown user: [email protected] Apr 10 10:26:29 ######### postfix/pipe[8330]: 19EA21827: to=<[email protected]>, relay=plesk_virtual, delay=0.15, delays=0.11/0/0/0.04, dsn=2.0.0, status=sent (delivered via plesk_virtual service) Apr 10 10:26:29 ######### postfix/qmgr[8323]: 19EA21827: removed
[email protected]是我在php.ini中声明的名称
sendmail_from = "[email protected]" sendmail_path = "/usr/sbin/sendmail -t -f [email protected]"
而收件人应该是[email protected] 。
这是我的身边还是收件人的错误? 我能在我的服务器上解决这个问题吗
非常感谢SF。
我发现这是一个错误,由于PLESK(和用户),因为没有太多的文件,我认为这个职位值得保留。
因为我有发送给PLESK的电子邮件地址的虚拟主机域名,所以当它将电子邮件地址的末尾识别为它自己托pipe的东西时,它试图恢复到本地的Postfixsearch。
有关于如何解决PostFixconfiguration文件在这里的文档。
我感谢大家的努力。
Apr 10 10:26:29 ######### postfix-local [8331]:postfix-local:from = [email protected],[email protected],dirname = / var / qmail / mailnames Apr 10 10:26:29 ######### postfix-local [8331]:can not chdir to mailname dir name:No such file or directory Apr 10 10:26:29 ### ###### postfix-local [8331]:未知用户:[email protected]
相反,你可能会认为,这些不是后缀日志。
Postfix为所有日志消息添加postfix/<servicename> – 永远不会postfix-<servicename>
我也有这个问题。 发送到我公司域名的电子邮件正在本地发送。 这是(我相信),因为在Plesk(是的,这是一个普列斯克问题)。
所以基本上它是哦[email protected]是注册用户让本地发送任何@ company.com电子邮件或类似的东西。
无论如何,我现在不得不解决这个问题,我编辑了/etc/postfix/main.cf文件,并注释了以“virtual”开头的行。
有关如何解决问题的说明,请参阅http://www.rcneil.com/postfix-local-loop-in-plesk/