Email Pipe issues
Hi Guys
New to this forum, i am relatively inexperienced at PHP but not a beginner or noob.
I have set up in cpanel an email address and set up forwarding as such
|/home/fifebirder/test.php
i am using x3 style in my panel.
as you can see i have my shebang in my basic script, i have only created a basic script as i know the rest of the script in my "real" forwarding script works fine. when i send an email to the email address that gets forwarded i keep getting this in my exim_mainlog file |/home/fifebirder/test.php (my@email.address[/EMAIL]) R=virtual_aliases_nostar 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/fifebirder/test.php my@email.address[/EMAIL] has been inserted instead of my real email address which i can send and recieve to. I have test.php set to 755 permission, have also tried setting it to 700. Can someone please help as i have now spend many hours reading online hints and tips and i am getting no where. Apologies if this is not the correct format to ask for help.
test.php file is :-
#!/usr/bin/php -q
as you can see i have my shebang in my basic script, i have only created a basic script as i know the rest of the script in my "real" forwarding script works fine. when i send an email to the email address that gets forwarded i keep getting this in my exim_mainlog file |/home/fifebirder/test.php (my@email.address[/EMAIL]) R=virtual_aliases_nostar 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/fifebirder/test.php my@email.address[/EMAIL] has been inserted instead of my real email address which i can send and recieve to. I have test.php set to 755 permission, have also tried setting it to 700. Can someone please help as i have now spend many hours reading online hints and tips and i am getting no where. Apologies if this is not the correct format to ask for help.
-
Your test.php script is posted around the Internet. Here's one site with some additional details you might find useful: a2hosting.com/kb/cpanel/cpanel-mail-features/forwarding-incoming-e-mail-messages-to-a-script-file 0 -
Hello :) The output suggests you may have simply entered the path to the script. Instead, you have to enter it like this: |php -q /home/user/public_html/path/script.php
Thank you.0 -
cPanelMichael, x3 does not allow the pipe symbol. 0 -
x3 does not allow the pipe symbol.
I was noting the fact that it looks like you may have left out "php -q". Thank you.0 -
i have got it sort of working but form some reason [Removed - Please paste output in CODE tags] isnt getting the email, checking email logs says that it has been delivered, files have 1777 permissions 0 -
i have got it sort of working but form some reason [PHP]#!/usr/local/bin/php -q [/PHP] isnt getting the email, checking email logs says that it has been delivered, files have 1777 permissions
PHP Warning: fopen(MAIL.txt): failed to open stream: Permission denied in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 11 Warning: fopen(MAIL.txt): failed to open stream: Permission denied in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 11 PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 12 Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 12 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 13 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/fifebirder/public_html/Forum/specialscripts/test.php on line 130 -
You might do better to find the author of the script, or a coding forum for support with this. The problem is with your script, not your cPanel. 0
Please sign in to leave a comment.
Comments
7 comments