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服务,邮件发送成功。

    

本文出自 “Hades博客” 博客,请务必保留此出处http://hades02.blog.51cto.com/9768670/1734336

文章来自:http://hades02.blog.51cto.com/9768670/1734336
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3