解决sendmail启动特别慢的办法

平时装了个linux虚拟机,因为是作测试用,因此也不怎么用sendmail,一装完就把相应的服务给关掉了,可是最近因为本身要作个测试用sendmail发送邮件,因而启动sendmail服务,可是感受启动的时候特别特别的慢,重启sendmail服务也特别的慢,因而感受确定那里设置有问题,由于以前作测试改了不少的东西,因而上网查找相应的资料,都未很好的说明缘由,偶尔看见说sendmail启动慢的问题多是因为host主机名形成的,因而查看/etc/hosts文件,内容以下:linux

[root@gfs1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1         localhost.localdomain localhost
::1  localhost6.localdomain6 localhost6
dom

个人主机名在/etc/resolv.conf里面改为了gfs1,本机ip地址为:192.168.1.181,根据网上的提示在主机名配置里作了以下设置:ide

root@gfs1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1         localhost.localdomain localhost
::1  localhost6.localdomain6 localhost6
192.168.1.181   gfs1.    gfs1
测试

注意:第一个gfs1后面有个小数点(.)ui

从新启动sendmail服务,速度飞快,得以解决,看样子仍是主机名形成的啊!!!spa

相关文章
相关标签/搜索