sendmail启动失败报错如下,解决思路权限问题-思路来自于网
2013-07-13 10:40:39   来源: 运维之家   评论:0 点击:

Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: filecla

sendmail启动失败报错如下,解决思路权限问题-思路来自于网络

 
错误如下
[root@localhost etc]# /etc/init.d/sendmail restart
Shutting down sm-client:                                   [FAILED]
Shutting down sendmail:                                    [FAILED]
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 588: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
                                                           [FAILED]
Starting sm-client: /etc/mail/submit.cf: line 544: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
                                                           [FAILED]
 
解决思路,文件权限问题,从报错看是这两个文件权限问题,经查证不是这两个文件问题,是配置文件的权限问题造成。
 
解决办法:
 
方法一:放大对文件的检查权限--替换/etc/mail/sendmail.cf 
Fw/etc/mail/local-host-names Fw-o     /etc/mail/local-host-names
Ft/etc/mail/trusted-users Ft-o   /etc/mail/trusted-users
重启即可正常
 
二设置合理权限:
# chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue

相关热词搜索:sendmail 启动 失败

上一篇:sendmail启动virtusertable.db错误解决
下一篇:修改配置文件隐藏nginx版本号提高安全性

分享到: 收藏