Linux Centos VPS上的Sendmail速度非常慢

Linux Centos VPS上的Sendmail速度非常慢,linux,centos,sendmail,Linux,Centos,Sendmail,我的vps最近开始出现sendmail速度非常慢的问题。这与使用带有mail函数的PHP发送的电子邮件相同,或者使用mail命令从命令行发送的电子邮件也一样。我知道这可能是不够的信息,但以下是要开始的日志: #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, cla

我的vps最近开始出现sendmail速度非常慢的问题。这与使用带有mail函数的PHP发送的电子邮件相同,或者使用mail命令从命令行发送的电子邮件也一样。我知道这可能是不够的信息,但以下是要开始的日志:

#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=<201303291509.r2TF9732023362@vps-1006136-254.manage.myhosting.co
m>, relay=apache@localhost

#PHP mail command was run at 11:09:19
Mar 29 11:09:27 vps-1006136-254 sendmail[23366]: r2TF9CIU023366: from=<apache@vps-1006136-254.manage.myhosting.com>, size=470, class=0, nrcpts=1, msgid=<201303291509.r2TF9732023
362@vps-1006136-254.manage.myhosting.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 29 11:09:27 vps-1006136-254 sendmail[23362]: r2TF9732023362: to=jeremy.m.fry@gmail.com, 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=<jeremy.m.fry@gmail.com>, ctladdr=<apache@vps-1006136-254.manage.myhosting.com> (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)
#在mail命令运行约8秒后出现
3月29日11:09:12 vps-1006136-254 sendmail[23362]:r2TF9732023362:from=apache,size=203,class=0,nrcpts=1,msgid=,中继=apache@localhost
#PHP邮件命令在11:09:19运行
三月29日11:09:27 vps-1006136-254 sendmail[23366]:r2TF9CIU023366:from=,size=470,class=0,nrcpts=1,msgid=,proto=ESMTP,daemon=MTA,relay=localhost.localdomain[127.0.0.1]
3月29日11:09:27 vps-1006136-254 sendmail[23362]:r2TF9732023362:to=jeremy.m。fry@gmail.com,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接受传递的邮件)
#电子邮件终于发出了
3月29日11:09:57 vps-1006136-254 sendmail[23376]:STARTTLS=client,relay=smtp.vps.myhosting.com.,field=cn\u subject,status=提取cn失败
3月29日11:09:57 vps-1006136-254 sendmail[23376]:STARTTLS=client,relay=smtp.vps.myhosting.com.,field=cn\u issuer,status=提取cn失败
3月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,bit=256/256
3月29日11:09:58 vps-1006136-254发送邮件[23376]:r2TF9CIU023366:to=,ctladdr=(48/48),延迟=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的邮件功能似乎要等待整整30多秒才能返回
true
,这会导致我的一些联系人表单似乎没有响应。有人知道我可以做些什么来加快速度,或者下一步从哪里查找更多信息吗?

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

看起来是DNS解析问题,新名称服务器已修复该问题。而且
yum
现在速度要快得多,因为它也可以毫不延迟地找到镜像