Not sure what to even ask here... I have a shared Linux hosting account with Lunarpages, not sure what distribution the server runs.
In my cPanel mail config, I'm having all unrouted email for a particular subdomain routed to a PHP script which parses the mail, updates a MySQL database table based on the content of the mail, then forwards the mail to s specific person, again based on the content of the incoming mail.
A recent script update inadvertently unset the execute bit on the PHP mail parsing script, causing the incoming mail to bounce back to the sender with a "no such address" error:
"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
|/path/to/script/parseMailScript.php
generated by ticket_4889_reference@subdomain.domain.com
local delivery failed"
My problem is that the mail-parse PHP script had been throwing these errors for 2 weeks before a client finally notified us that his mails were bouncing...
Can anyone suggest a mechanism where I could be notified if the script I'm piping to throws an error when trying to execute or some other condition prevents the pipe from opening?
In my cPanel mail config, I'm having all unrouted email for a particular subdomain routed to a PHP script which parses the mail, updates a MySQL database table based on the content of the mail, then forwards the mail to s specific person, again based on the content of the incoming mail.
A recent script update inadvertently unset the execute bit on the PHP mail parsing script, causing the incoming mail to bounce back to the sender with a "no such address" error:
"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
|/path/to/script/parseMailScript.php
generated by ticket_4889_reference@subdomain.domain.com
local delivery failed"
My problem is that the mail-parse PHP script had been throwing these errors for 2 weeks before a client finally notified us that his mails were bouncing...
Can anyone suggest a mechanism where I could be notified if the script I'm piping to throws an error when trying to execute or some other condition prevents the pipe from opening?