Php – Sendmail Errors when Sending via PHP

apache-2.2PHPphp53sendmail

I'm trying to setup a new help desk program (Kayako), but I'm having problems relaying the mail to our mail server.

Here's the error I'm getting:

sendmail[2371]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied

I changed ownership on the clientmqueue folder to smmsp:apache with the same 770 permissions as it normally has, however the error still occurs.

Best Answer

According to the "bat book" (4th edition, page 168) the recommended permissions for the directory are:

chown smmsp:smmsp clientmqueue
chmod 0770 clientmqueue
Related Topic