unix启动过程中sendmail长时间等待问题解决
来源:互联网 发布:湖北省金税盘开票软件 编辑:程序博客网 时间:2024/04/28 17:36
今天在配置confluence邮件功能的时候,启动sendmail竟然需要很长时间,网上查了查,有很多人碰到类似问题,但是一般都是关掉sendmail服务或者关掉dns了事,咱们现在要用它,自然不能关掉了事,dns也不能关,关了服务器没法解析域名
毫无疑问,sendmail去做dns lookup,并且无法lookup到域名,在等待解析超时!
resolv里面也指定了nameserver,应该能正常做dns解析了,既然他无法解析域名,自然这是个本地域名,难道是hosts里面的问题,查看了一下hosts文件:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.28 rdosrv
好像也没发现啥不对的,他在解析啥呢,看看log去,找到/var/log/maillog(也可能在messages),看到如下内容:
Dec 11 14:25:01 rdosrv sendmail[22710]: starting daemon (8.13.8): SMTP+queueing@01:00:00
Dec 11 14:25:01 rdosrv sm-msp-queue[22717]: My unqualified host name (rdosrv) unknown; sleeping for retry
Dec 11 14:28:08 rdosrv sendmail[22803]: My unqualified host name (rdosrv) unknown; sleeping for retry
Dec 11 14:35:23 rdosrv sendmail[22944]: My unqualified host name (rdosrv) unknown; sleeping for retry
Dec 11 14:35:57 rdosrv sendmail[22962]: My unqualified host name (rdosrv) unknown; sleeping for retry
Dec 11 14:36:54 rdosrv sendmail[22979]: My unqualified host name (rdosrv) unknown; sleeping for retry
竟然是无法解析rdosrv,有点意思,直接去ping rdosrv自然是没问题,突然想到好像FQDN里面规定域名必须用"."结尾,难道是hosts里面少了一个".",尝试修改hosts文件:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.28 rdosrv. rdosrv
启动sendmail,刷一下就启动了,呵呵
回头想想,问题其实很简单,但是在网上却没找到什么好的方案,说明都挺懒得,能绕都绕过去了.
- unix启动过程中sendmail长时间等待问题解决
- sendmail发送邮件长时间等待问题解决
- linux 启动时,sendmail 长时间等待
- 启动过程中sendmail启动慢
- Linux 启动过程中 sendmail 启动特别慢
- unix启动过程
- Unix的启动过程
- 数据泵导入中table_statistics长时间等待问题
- CentOS(RedHat)中sendmail启动慢解决方法
- 长时间LATCH FREE等待
- linux oracle监听启动等待很久问题解决
- 安装xampp过程中启动mysql“卡住”问题解决办法
- 长时间latch free等待——记一次系统异常的诊断过程 (转)
- 长时间latch free等待——记一次系统异常的诊断过程
- Android实现长时间等待界面
- Android实现长时间等待界面
- Android实现长时间等待界面
- Update MyEclipse10 长时间等待解决办法
- Java语言标准BNF
- 真正的右键屏蔽
- 可拖动图层
- XP系统安装SQL Server 2005开发版具体过程与注意问题
- 获取鼠标坐标脚本
- unix启动过程中sendmail长时间等待问题解决
- 有道难题之eaglet的算法
- sendmail安装配置笔记
- vc6开发activex并发布全攻略(一)(初级篇)
- 女人
- 诺基亚e65 ucweb 6.7正式免签名下载
- IL 到底算不算汇编语言?
- vc6开发activex并发布全攻略(二)(初级篇)
- 变换的立体感表格