2013-03-29 46 views
0

我的vps最近开始遇到sendmail问题很慢。对于使用PHP使用邮件功能发送的电子邮件或使用mail命令从命令行发送的电子邮件,这也是一样的。我知道这可能是没有足够的信息,但这里是日志开始:Sendmail在Centos VPS上很慢

#Appears about 8 seconds after the mail command is run 
Mar 29 11:09:12 vps-1006136-254 sendmail[23362]: r2TF9732023362: from=apache, size=203, class=0, nrcpts=1, msgid=<[email protected] 
m>, [email protected] 

#PHP mail command was run at 11:09:19 
Mar 29 11:09:27 vps-1006136-254 sendmail[23366]: r2TF9CIU023366: from=<[email protected]>, size=470, class=0, nrcpts=1, msgid=<201303291509.r2TF9732023 
[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] 
Mar 29 11:09:27 vps-1006136-254 sendmail[23362]: r2TF9732023362: [email protected], ctladdr=apache (48/48), delay=00:00:20, xdelay=00:00:15, mailer=relay, pri=30203, rel 
ay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r2TF9CIU023366 Message accepted for delivery) 

#email finally sends 
Mar 29 11:09:57 vps-1006136-254 sendmail[23376]: STARTTLS=client, relay=smtp.vps.myhosting.com., field=cn_subject, status=failed to extract CN 
Mar 29 11:09:57 vps-1006136-254 sendmail[23376]: STARTTLS=client, relay=smtp.vps.myhosting.com., field=cn_issuer, status=failed to extract CN 
Mar 29 11:09:57 vps-1006136-254 sendmail[23376]: STARTTLS=client, relay=smtp.vps.myhosting.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256 
Mar 29 11:09:58 vps-1006136-254 sendmail[23376]: r2TF9CIU023366: to=<[email protected]>, ctladdr=<[email protected]> (48/48), delay=00:00:31, xdel 
ay=00:00:31, mailer=relay, pri=120470, relay=smtp.vps.myhosting.com. [168.144.1.236], dsn=2.0.0, stat=Sent (OK id=1ULawH-0002KK-BM) 

我的问题是,它似乎是PHP的邮件功能好像回到true之前等待完整的30秒以上,它会导致一些我的联系表单看起来没有反应。有谁知道我能做些什么来加快速度,或者在哪里查看更多信息?

回答

0

好吧,我向我的VPS主机提交了一张票,他们“无法复制”这个问题。但是,我的/etc/resolve.conf文件中有一个新的名称服务器,指向Google DNS服务器(8.8.8.8)。

看起来这是一个DNS解析问题,新的名称服务器已经解决了这个问题。另外yum现在快得多,因为它可以毫无延迟地找到镜像。