今天,Centos 6.5 Linux,yum安装了sendmail,启动后,发送测试邮件,在/var/log/maillog文件中,报错如下:
sendmail[20475]: unable to qualify my own domain name (Ajkhuel) -- using short name
于是,google了一下,发现是/etc/hosts文件的问题:
原文件内容:
127.0.0.1localhost
::1 localhostlocalhost.localdomain localhost6 localhost6.localdomain6
192.168.8.66 Ajkhuel
修改后内容:
127.0.0.1localhost
::1 localhostlocalhost.localdomain localhost6 localhost6.localdomain6
192.168.8.66 Ajkhuel abc.mail.com
修改后,重启sendmail服务,邮件发送成功。
本文出自 “Hades博客” 博客,请务必保留此出处http://hades02.blog.51cto.com/9768670/1734336
sendmail 报错:unable to qualify my own domain name
原文地址:http://hades02.blog.51cto.com/9768670/1734336