bounce.cgi has permission 755. The listmail url is correct in bounce.cgi (no trailing slash).
bounce@mysite.com is not listed under standers mail accounts in cpanel.
I tried this php snippet, but shell_exec is disabled due to security reasons.
But I sent an email to bounce@mysite.com with TESTBOUNCE in subject, and the response is this:
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/username/public_html/cgi-bin/bounce.cgi
generated by bounce@mysite.com
local delivery failed
------ This is a copy of the message, including all the headers. ------
Then the copy of the message...
The mail server and the listmail maybe (but Im not sure) are in different servers, could this cause problems?
Forward email to cgi script is working, I have tested it with another program, and cgi is able to handle the mail.
(|/home/username/public_html/cgi-bin/bounce.cgi --> the username here is my username, but I have changed it here in forum, and mysite.com is my domain name, but I have changed it here, too)