Pipe to program - not working
We are trying to pipe incomming mails to a PHP file.
I have inserted the path to the file without any trouble.
When i send a email to the email i get a mail in return with
The File does however exists (with file permission 1755 or 755) I have tried to change the delivery place in the /etc/valiases/xxx.dev.example.dk" from test1@xxx.dev.example.dk[/EMAIL]: |/home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php to test1@xxx.dev.example.dk[/EMAIL]: /home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php This makes it to work, it however resets the files permission, which would mean i had to update it every time there came a mail How can we fix this? what did i Miss?
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/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php
generated by test1@xxx.dev.example.dk
The following text was generated during the delivery attempt:
------ pipe to |/home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php
generated by test1@xxx.dev.example.dk ------
Exception: Zend Extension /home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php does not exist
The File does however exists (with file permission 1755 or 755) I have tried to change the delivery place in the /etc/valiases/xxx.dev.example.dk" from test1@xxx.dev.example.dk[/EMAIL]: |/home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php to test1@xxx.dev.example.dk[/EMAIL]: /home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php This makes it to work, it however resets the files permission, which would mean i had to update it every time there came a mail How can we fix this? what did i Miss?
-
The docs may be of some use to you: How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation 0
Please sign in to leave a comment.
Comments
1 comment