I have a script that handles piped emails and sends out automatic responses. This script has been working fine for over a year, yet after my host upgraded to cPanel 11.38.2 my script fails to send email:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/user/public_html/email_proc.php
generated by email@domain.com
The following text was generated during the delivery attempt:
------ pipe to |/home/user/public_html/email_proc.php
generated by email@domain.com ------
2013-12-24 10:36:27 [6] Cannot open main log file "/var/log/exim_mainlog": Read-only file system: euid=0 egid=32007
2013-12-24 10:36:27 [6] cwd=/home/user/public_html/ 5 args: /usr/sbin/sendmail -t -i -f email@domain.com
2013-12-24 10:36:27 [6] Cannot open main log file "/var/log/exim_mainlog": Read-only file system: euid=0 egid=32007
exim: could not open panic log - aborting: see message(s) above
I've been going back and forth with the host provider since I don't have ssh access I can't see exactly what is going on, but they insist it is a cPanel or php bug and is out of their control. Then they created a test email account and found the mail server is working fine, but I keep telling them there is something going on with their php library access configuration not the mail server itself.
Can someone provide some suggestions on either:
How I could try to track this down with limited server access.
Suggestions for the technical support to try to fix the problem?
Thanks!
Further testing shows that this problem is specific to the cPanel email pipe. If the script is run directly via Apache everything works fine. If it is run via the pipe with exec it fails. If anyone could make a suggestion it would be appreciated. This seems to be beyond the knowledge of the admin staff.