我不能让sendmail工作从Apache + PHP,除非我更改/ var/spool/clientmqueue 777的权限。与权限发送邮件与Apache + PHP的权限错误,而没有更改权限777
所有权的/ var /阀芯/ clientmqueue的
drwxrwxrwx 2 smmsp mail 4096 Jul 19 11:50 clientmqueue
我搞砸与用户组smmsp和Apache。
id apache
uid=48(apache) gid=48(apache) groups=48(apache),12(mail)
id mail
uid=12(mail) gid=12(mail) groups=12(mail),48(apache)
的SELinux被禁用
getsebool httpd_can_sendmail
getsebool: SELinux is disabled
在maillog的,如果我设置文件夹的权限,以770
NOQUEUE: SYSERR(apache): can not write to queue directory
/var/spool/clientmqueue/ (RunAsGid=48, required=12): Permission denied
没有邮件将被发送,我会从PHP得到一个错误。
如果我的文件夹设置为0777,然后代替我会得到这个在maillog中
dangerous permissions=40776 on queue directory /var/spool/clientmqueue/
但是PHP将发送邮件的罚款。
是否有可能得到它与0770和Apache正在阅读组邮件的工作。我知道错误是apaches主要GID 48,但它也共享组12.
任何帮助将是可怕的。