sendmail因权限不合理拒绝启动的解决办法
2009-09-23 17:17
今天在RHEL5.3 系统的主机上安装邮件服务器。
通过yum install装好sendmail和sendmail-cf这两个包后启动sendmail遭拒绝。# service sendmail startservice sendmail start
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 545: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
[FAILED]
经查实是与sendmail有关的文件权限设置有误,而非警告中提及的两个文件。
解决办法有两种:一为设置合理权限:
# chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
二为放松文件权限检查:替换/etc/mail/sendmail.cf 中第91行
Fw/etc/mail/local-host-names为Fw-o /etc/mail/local-host-names第588行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users替换/etc/mail/submit.cf中第545行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users即可顺利启动sendmail按:sendmail真是混帐,配置文件复杂也就算了,权限检查也这么婆妈。估计是早期版本安全问题一大堆给吓出来的毛病。
mail server sendmail
最新推荐文章于 2023-11-13 10:44:46 发布