linux 下php mail发送邮件慢的解决办法及sendmail慢的解决办法 收藏 评论
2013年07月01日

mail慢并超时是由于sendmail慢引起的,  但sendmail慢又如何解决呢?

第一步:当然是查日志:

 vim /var/log/maillog

Jul  5 23:26:20 localhost sendmail[1206]: My unqualified host name (localhost) unknown; sleeping for retry
Jul  5 23:27:20 localhost sendmail[1206]: unable to qualify my own domain name (localhost) -- using short name
Jul  5 23:27:20 localhost sendmail[1206]: r65FRKmm001206: from=nobody, size=187, class=0, nrcpts=1, msgid=<201307051527.r65FRKmm001206@localhost>, relay=nobody@localhost
Jul  5 23:27:20 localhost sendmail[1207]: r65FRKBa001207: from=<nobody@localhost>, size=398, class=0, nrcpts=1, msgid=<201307051527.r65FRKmm001206@localhost>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul  5 23:27:20 localhost sendmail[1206]: r65FRKmm001206: to=aaa@gmail.com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30187, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r65FRKBa001207 Message accepted for delivery)
Jul  5 23:27:22 localhost sendmail[1209]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Jul  5 23:27:25 localhost sendmail[1209]: r65FRKBa001207: to=<aaa@gmail.com>, ctladdr=<nobody@localhost> (99/99), delay=00:00:05, xdelay=00:00:05, mailer=esmtp, pri=120398, relay=gmail-smtp-in.l.google.com. [74.125.129.26], dsn=2.0.0, stat=Sent (OK 1373038045 qn3si5112247pbc.62 - gsmtp)
Jul  5 23:30:01 localhost sendmail[1212]: My unqualified host name (localhost) unknown; sleeping for retry

第二步:在hosts表添加域名

#hostname

vim /etc/hosts

如下添加

::1       localhost localhost.localdomain localhost6 localhost6.localdomain6 你的域名





http://blog.webinno.cn/article/view/67

本文地址:http://blog.webinno.cn/article/view/67

发表于 @ 2013年07月01日 | 浏览4035次| 编辑 |评论(loading... ) | 分享到:QQ空间新浪微博腾讯微博微信

评论列表

发表评论