启动sendmail服务可能会出现如下错误。

Source code    
1.[root@newraweb mail]# service sendmail start2.Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open "/etc/mail/local-host-names": World writable directory3.451 4.0.0 /etc/mail/sendmail.cf: line 570: fileclass: cannot open "/etc/mail/trusted-users": World writable directory

 

解决方法:
1、设置合理权限

Source code    
chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue

 

2、放松文件权限检查:

Source code    
1.替换/etc/mail/sendmail.cf 中2.第91行Fw/etc/mail/local-host-names为Fw-o /etc/mail/local-host-names3.第588行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users4.替换/etc/mail/submit.cf中5.第545行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users

 

即可正常启动SendMail服务。

Sendmail启动失败 World writable directory

发表评论

电子邮件地址不会被公开。 必填项已用*标注