SOLUTION IN THE FIRST REPLY
I'm triggering a php script if an email is being received by [email protected]
The line in the aliases file is:
(note the exta space between "|" and "/" seems to be needed for the piping to work)
anyways.. the script is being executed but the sender still gets a delivery error sent back
The php-script does not generate any output. I also tried it with an empty file or sending exit(0); or returning NULL. Nothing seems to solve this issue.
I only found a couple other people having the same issues on machines running directadmin but didn't find a solution.
Needed system information:
Thank you for any help in advance
I'm triggering a php script if an email is being received by [email protected]
The line in the aliases file is:
Code:
upload: "| /usr/local/php5/bin/php -q /home/snapixel/domains/snapixel.com/public_html/emailtrigger.php"
anyways.. the script is being executed but the sender still gets a delivery error sent back
Code:
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 | /usr/local/php5/bin/php -q /home/path/to/script.php
generated by [email protected]
The following text was generated during the delivery attempt:
------ pipe to | /usr/local/php5/bin/php -q /home/path/to/script.php
generated by [email protected] ------
The php-script does not generate any output. I also tried it with an empty file or sending exit(0); or returning NULL. Nothing seems to solve this issue.
I only found a couple other people having the same issues on machines running directadmin but didn't find a solution.
Needed system information:
Code:
Exim 4.67
DirectAdmin 1.32.1
dovecot 1.0.14
Linux 2.6.18-53.1.21.el5
Thank you for any help in advance
Last edited: