centos – Sendmail chdir(/ clientmqueue)权限被拒绝

前端之家收集整理的这篇文章主要介绍了centos – Sendmail chdir(/ clientmqueue)权限被拒绝前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的centos服务器可以使用’mail’命令发送邮件,但不能从PHP发送邮件. Maillog说:
sendmail[18010]: NOQUEUE: SYSERR(Nginx): can not chdir(/var/spool/clientmqueue/): Permission denied

我的权限如下:

lrwxrwxrwx 1 Nginx Nginx 30 Oct 30 20:27 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail 
lrwxrwxrwx 1 Nginx Nginx 21 Oct 30 20:27 /usr/sbin/sendmail -> /etc/alternatives/mta

lrwxrwxrwx 1 Nginx Nginx 27 Oct 30  2012 /etc/alternatives/mta -> /usr/sbin/sendmail.sendmail
lrwxrwxrwx 1 Nginx Nginx 26 Oct 30  2012 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.sendmail

lrwxrwxrwx 1 Nginx Nginx     16 Oct 30  2012 /usr/lib/sendmail.sendmail -> ../sbin/sendmail
-rwxr-xr-x 1 root  smmsp 775064 Aug 11  2011 /usr/sbin/sendmail.sendmail

这些链接将用于什么?

Sendmail-8.12安装:文件权限

Sendmail-8.12二进制文件应按设置的GROUP id安装.
(在你的情况下/usr/sbin/sendmail.sendmail)

http://www.sendmail.org/~ca/email/doc8.12/SECURITY

-r-xr-sr-x  root   smmsp    ... /PATH/TO/sendmail
drwxrwx---  smmsp  smmsp    ... /var/spool/clientmqueue
原文链接:https://www.f2er.com/centos/373414.html

猜你在找的CentOS相关文章