Not all
well, it works but not completly... Exim (MTA) kept sending in reply something like 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 |/usr/local/bin/php -q /home/admin/domains/***/pipe/automail.php
generated by support@***
The following text was generated during the delivery attempt:
------ pipe to |/usr/local/bin/php -q /home/admin/domains/***/pipe/automail.php
generated by support@*** ------
(...)
To get rid of it, we have to edit exim.conf file (/etc/exim.conf). Find section:
address_pipe:
driver = pipe
return_output
virtual_address_pipe:
driver = pipe
group = nobody
return_output
(...)
and change both 'return_output' to 'return_fail_output' (without quotes)
also, You forgot to mention that one also have to edit pipe.php file - I know it's rather obvious, but being in a hurry I simply forgot about it ;)