Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2624607
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2008-12-17 17:33:41

  AIX下root用户给自己发邮件,收到邮件的速度很慢。用-v参数去查,发现有以下警告:
[test2:/]#mail -v root
Subject: hwl
sdfasdf
Cc:
WARNING: local host name (test2_svc) is not qualified; fix $j in config file
root... Connecting to local...
root... Sent
 
到网上查了一下,有段资料是这样写的:

If sendmail cannot resolve your domain name, you may see the following warning message in your syslog file:

WARNING: local host name name is not qualified; fix $j in config file

This message can occur if you are using NIS and the first entry in the /etc/hosts file is not a fully-qualified host name. To resolve this problem, do one of the following:

  • In the /etc/mail/sendmail.cf file, uncomment the following line by deleting the pound sign (#) at the beginning of the line:

    Dj$w.Foo.COM

    Change "Foo.COM" to the name of your domain (for example, "HP.COM").

  • Modify the /etc/hosts file, making sure that the fully-qualified name of the system is listed first. For example, the entry in the file should be "255.255.255.255 dog.cup.hp.com dog" and not "255.255.255.255 dog dog.cup.hp.com.

 

我没有配置DNS,所有没有/etc/resolve.conf这个文件。我估计是sendmail无法对空域名作出解析才报这样的错。在IP后面添加一个类似域名的东西就可以了。hosts如下:

192.168.11.203 test2_svc test2

[test2:/]#mail -v root
Subject: test
test only
Cc:
root... Connecting to local...
root... Sent

我这样理解总觉得有点问题,希望知道的XD指点一下。
阅读(1026) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~