sendmail 报错:unable to qualify my own domain name

今天,Centos 6.5 Linuxyum安装了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服务,邮件发送成功。

    

你可能感兴趣的:(linux,domain,sendmail)