unix啟動過程中sendmail長時間等待問題解決

          作者:tacy lee

          今天在配置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,刷一下就啟動了,呵呵

          回頭想想,問題其實很簡單,但是在網上卻沒找到什么好的方案,說明都挺懶得,能繞都繞過去了.

          del.icio.us Tags: ,,

          posted on 2007-12-11 15:58 tacy lee 閱讀(2547) 評論(4)  編輯  收藏

          評論

          # re: unix啟動過程中sendmail長時間等待問題解決 2008-04-13 16:16 xiao

          非常感謝!解決我的問題!
            回復  更多評論   

          # re: unix啟動過程中sendmail長時間等待問題解決 2008-04-13 18:45 tacy lee

          有幫助就好 呵呵  回復  更多評論   

          # re: unix啟動過程中sendmail長時間等待問題解決[未登錄] 2009-12-21 22:36 hehe

          不是懶 是會的 都不寫到網上
          呵呵  回復  更多評論   

          # re: unix啟動過程中sendmail長時間等待問題解決[未登錄] 2012-08-21 17:57 清風

          及時雨啊,謝謝  回復  更多評論   


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 南通市| 离岛区| 灯塔市| 武邑县| 招远市| 灵山县| 金山区| 崇仁县| 孟州市| 顺昌县| 武乡县| 左云县| 镇巴县| 嵊泗县| 宁夏| 龙里县| 莱州市| 温泉县| 东海县| 甘孜县| 白银市| 东莞市| 门源| 保定市| 那坡县| 渭源县| 新巴尔虎左旗| 手游| 福建省| 巴中市| 加查县| 思茅市| 旅游| 马公市| 瓮安县| 盐源县| 西平县| 南康市| 铜陵市| 海淀区| 旺苍县|