问题原文
原帖链接 · Adripants · CC BY-SA 3.0
My centos server can send mail using the 'mail' command but not from php. Maillog says:
sendmail[18010]: NOQUEUE: SYSERR(nginx): can not chdir(/var/spool/clientmqueue/): Permission denied
My permissions are as follows:
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
What would all these links be for?
已采纳解答
原帖链接 · AnFi onet.eu · CC BY-SA 4.0
Sendmail-8.12+ installation: file permissions
Sendmail-8.12+ binary should be installed as set GROUP id.
(/usr/sbin/sendmail.sendmail in your case)
It is described in SECURITY file in sendmail(.org) distribution:
-r-xr-sr-x root smmsp ... /PATH/TO/sendmail
drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
