解决sendmail的can not chdir(/var/spool/clientmqueue/)错误问题
服务器用的RedHat AS4版本,今天启用sendmail功能的时候,出错:
Starting sendmail: [ OK ] Starting sm-client: can not chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser.Google了一把,终于找到问题所在:
原来是/var/spool/clientmqueue/的权限配置不正确,sendmail没有权限访问这个目录,
默认的:
drwxrwx--- 2 root root 4096 12月 9 19:27 /var/spool/clientmqueue
修改后:
drwxrwx--- 2 smmsp smmsp 4096 12月 9 19:27 /var/spool/clientmqueue
重启sendmail服务,OK。下一篇 >>