I have an email address that is just a forward, so
test@example.com just forwards to username@gmail.com
In the .qmail file for test I have this:
| /var/www/vhosts/example.com/httpdocs/info/api/pipe.php
#| true
&username@gmail.com
The api script is set to 755 as well.
When I send an email to test@ I get this error in the maillog
Nov 18 16:24:45 servername qmail: 1384809885.825195 starting delivery 25495: msg 122093577 to local 7-test@example.com
Nov 18 16:24:45 servername qmail-local-handlers[30150]: to=test@example.com
Nov 18 16:24:45 servername qmail-local-handlers[30150]: mailbox: /var/qmail/mailnames/example.com/test
Nov 18 16:24:45 servername qmail: 1384809885.831906 delivery 25495: deferral: /bin/sh:_/var/www/vhosts/example.com/httpdocs/info/api/pipe.php:_Permission_denied/
AND with what I read on some issues, they said to add the php path to the script which i did in the qmail file like this:
| /usr/bin/php /var/www/vhosts/example.com/httpdocs/info/api/pipe.php
#| true
&username@gmail.com
And then I get this:
Nov 18 16:30:10 servername qmail-queue-handlers[30602]: to=test@example.com
Nov 18 16:30:10 servername qmail: 1384810210.706332 starting delivery 25527: msg 113348250 to local 7-test@example.com
Nov 18 16:30:10 servername qmail-local-handlers[30606]: to=test@example.com
Nov 18 16:30:10 servername qmail-local-handlers[30606]: mailbox: /var/qmail/mailnames/example.com/test
Nov 18 16:30:10 servername qmail: 1384810210.764939 delivery 25527: deferral: Could_not_open_input_file:_/var/www/vhosts/example.com/httpdocs/info/api/pipe.php/
test@example.com just forwards to username@gmail.com
In the .qmail file for test I have this:
| /var/www/vhosts/example.com/httpdocs/info/api/pipe.php
#| true
&username@gmail.com
The api script is set to 755 as well.
When I send an email to test@ I get this error in the maillog
Nov 18 16:24:45 servername qmail: 1384809885.825195 starting delivery 25495: msg 122093577 to local 7-test@example.com
Nov 18 16:24:45 servername qmail-local-handlers[30150]: to=test@example.com
Nov 18 16:24:45 servername qmail-local-handlers[30150]: mailbox: /var/qmail/mailnames/example.com/test
Nov 18 16:24:45 servername qmail: 1384809885.831906 delivery 25495: deferral: /bin/sh:_/var/www/vhosts/example.com/httpdocs/info/api/pipe.php:_Permission_denied/
AND with what I read on some issues, they said to add the php path to the script which i did in the qmail file like this:
| /usr/bin/php /var/www/vhosts/example.com/httpdocs/info/api/pipe.php
#| true
&username@gmail.com
And then I get this:
Nov 18 16:30:10 servername qmail-queue-handlers[30602]: to=test@example.com
Nov 18 16:30:10 servername qmail: 1384810210.706332 starting delivery 25527: msg 113348250 to local 7-test@example.com
Nov 18 16:30:10 servername qmail-local-handlers[30606]: to=test@example.com
Nov 18 16:30:10 servername qmail-local-handlers[30606]: mailbox: /var/qmail/mailnames/example.com/test
Nov 18 16:30:10 servername qmail: 1384810210.764939 delivery 25527: deferral: Could_not_open_input_file:_/var/www/vhosts/example.com/httpdocs/info/api/pipe.php/