Yes, forwarding is working, but piping is not working Thats why its bouncing the mail back. Primary reason of not having the pipe worked is, php is not being recognised by the pipe. Usually my advise solve most of the pipe mail bounce problem, if it doesn't, then permission can be another reason. Sometimes you may need to replace php command with the original php binary, like /usr/bin/php