OSX / postfix:无法用PHP邮件发送邮件()

时间:2011-07-11 08:37:45

标签: php email macos xampp postfix-mta

前段时间我在我的Mac OSX机器上安装了XAMPP。 在没有自己进行相对配置的情况下,PHP mail()函数运行得非常好。

几个星期以来,没有任何明显的变化,它就停止了工作。

它既适用于我自己的ISP,也适用于我的客户的ISP。现在它不适用于任何一个,所以我怀疑这是一个本地问题。 此外,邮件确实使它成为postfix,所以我怀疑这不是XAMPP / PHP问题。

有没有人有这方面的经验?

最近的postfix mail.log

Jul 11 10:20:57 MyMac postfix/master[9012]: daemon started -- version 2.5.5, configuration /etc/postfix
Jul 11 10:20:57 MyMac postfix/qmgr[9014]: 3D6271033872: from=<nobody@MyMac.local>, size=3061, nrcpt=1 (queue active)
Jul 11 10:20:57 MyMac postfix/qmgr[9014]: 6083B1033897: from=<nobody@MyMac.local>, size=3061, nrcpt=1 (queue active)
Jul 11 10:20:57 MyMac postfix/qmgr[9014]: 765E210338C9: from=<nobody@MyMac.local>, size=3061, nrcpt=1 (queue active)
Jul 11 10:20:57 MyMac postfix/qmgr[9014]: D981E1033892: from=<nobody@MyMac.local>, size=3061, nrcpt=1 (queue active)
Jul 11 10:21:27 MyMac postfix/smtp[9016]: connect to ASPMX.L.GOOGLE.COM[74.125.79.27]:25: Operation timed out
Jul 11 10:21:27 MyMac postfix/smtp[9018]: connect to ASPMX.L.GOOGLE.COM[74.125.79.27]:25: Operation timed out
Jul 11 10:21:27 MyMac postfix/smtp[9019]: connect to ASPMX.L.GOOGLE.COM[74.125.79.27]:25: Operation timed out
Jul 11 10:21:27 MyMac postfix/smtp[9017]: connect to ASPMX.L.GOOGLE.COM[74.125.79.27]:25: Operation timed out
Jul 11 10:21:57 MyMac postfix/smtp[9016]: connect to ALT1.ASPMX.L.GOOGLE.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:21:57 MyMac postfix/smtp[9018]: connect to ALT1.ASPMX.L.GOOGLE.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:21:57 MyMac postfix/smtp[9017]: connect to ALT2.ASPMX.L.GOOGLE.COM[74.125.45.27]:25: Operation timed out
Jul 11 10:21:57 MyMac postfix/smtp[9019]: connect to ALT1.ASPMX.L.GOOGLE.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:22:27 MyMac postfix/smtp[9016]: connect to ALT2.ASPMX.L.GOOGLE.COM[74.125.45.27]:25: Operation timed out
Jul 11 10:22:27 MyMac postfix/smtp[9018]: connect to ALT2.ASPMX.L.GOOGLE.COM[74.125.45.27]:25: Operation timed out
Jul 11 10:22:27 MyMac postfix/smtp[9019]: connect to ALT2.ASPMX.L.GOOGLE.COM[74.125.45.27]:25: Operation timed out
Jul 11 10:22:27 MyMac postfix/smtp[9017]: connect to ALT1.ASPMX.L.GOOGLE.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:22:57 MyMac postfix/smtp[9016]: connect to ASPMX3.GOOGLEMAIL.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:22:57 MyMac postfix/smtp[9018]: connect to ASPMX3.GOOGLEMAIL.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:22:57 MyMac postfix/smtp[9019]: connect to ASPMX2.GOOGLEMAIL.COM[74.125.43.27]:25: Operation timed out

更新;这里有一些发送邮件的日志; (地址已删除)

Jul 11 10:23:27 MyMac postfix/smtp[9016]: 3D6271033872: to=<email@removed>, relay=none, delay=3473, delays=3323/0.03/150/0, dsn=4.4.1, status=deferred (connect to ASPMX2.GOOGLEMAIL.COM[74.125.43.27]:25: Operation timed out)
Jul 11 10:23:27 MyMac postfix/smtp[9018]: 765E210338C9: to=<email@removed>, relay=none, delay=2683, delays=2533/0.02/150/0, dsn=4.4.1, status=deferred (connect to ASPMX5.GOOGLEMAIL.COM[74.125.157.27]:25: Operation timed out)
Jul 11 10:23:27 MyMac postfix/smtp[9019]: connect to ASPMX3.GOOGLEMAIL.COM[72.14.213.27]:25: Operation timed out
Jul 11 10:23:27 MyMac postfix/smtp[9017]: connect to ASPMX2.GOOGLEMAIL.COM[74.125.43.27]:25: Operation timed out

发送到hotmail: 在这里,我收到另一条消息。

Jul 11 10:46:23 MyMac postfix/smtp[9069]: 355CD1033C4E: to=<address@removed>, relay=none, delay=150, delays=0.05/0.01/150/0, dsn=4.4.1, status=deferred (connect to mx3.hotmail.com[65.55.37.72]:25: Operation timed out)
Jul 11 10:49:42 MyMac postfix/master[9081]: fatal: open lock file pid/master.pid: unable to set exclusive lock: Resource temporarily unavailable
Jul 11 10:49:42 MyMac postfix/pickup[9013]: 3E90C1033CC5: uid=-2 from=<nobody>
Jul 11 10:49:42 MyMac postfix/cleanup[9082]: 3E90C1033CC5: message-id=<20110711084942.3E90C1033CC5@MyMac.local>
Jul 11 10:49:42 MyMac postfix/qmgr[9014]: 3E90C1033CC5: from=<nobody@MyMac.local>, size=3066, nrcpt=1 (queue active)
Jul 11 10:50:12 MyMac postfix/smtp[9084]: connect to mx2.hotmail.com[65.55.37.104]:25: Operation timed out
Jul 11 10:50:42 MyMac postfix/smtp[9084]: connect to mx4.hotmail.com[65.55.92.136]:25: Operation timed out

1 个答案:

答案 0 :(得分:2)

对我来说看起来像身份验证......

我相信gmail只允许使用经过身份验证的帐户进行smtp中继...

我必须遵循此信息才能让它在过去工作...... http://herson.biz/?p=94

修改

IP可能会被列入黑名单(可能还有其他提供商)。