Hello,
Error:
HTML Code:
T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home/username/public_html/forward.php
If you have created email piping cpanel as
mail@domain.tld: |/home/username/public_html/forward.php
and your forward.php having code as
HTML Code:
#!/usr/bin/php -q
<?
/* Read the message from STDIN */
$fd = fopen("php://stdin", "r");
$email = ""; // This will be the variable holding the data.
while (!feof($fd)) {
$email .= fread($fd, 1024);
}
fclose($fd);
/* Saves the data into a file */
$fdw = fopen("mail.txt", "w+");
fwrite($fdw, $email);
fclose($fdw);
/* Script End */
piping is not working and if you are getting following error with /var/log/exim_mainlog
T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home/user/public_html/orward.php
Solution:
Please check the permission of forward.php and mail.txt , if it is not writable and executable please make it executable and writable by assigning permission 755 .
#chmod 755 /home/user/public_html/forward.php
#chmod 755 home/user/public_html/mail.txt