Sendmail chdir(/ clientmqueue)权限被拒绝

Modified on: Mon, 20 May 2019 02:00:02 +0800

我的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

这些链接的用途是什么?

作者:Adripants

最佳答案

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
作者:,AnFi

相关问答

添加新评论