2013-03-29 47 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現在快得多,因爲它可以毫無延遲地找到鏡像。