全部博文(323)
分类: 系统运维
2008-12-17 17:33:41
If sendmail cannot resolve your domain name, you may see the following warning message in your syslog 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:
|
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