Piping works but still gets error Mail delivery failed:

nieuwhier

Verified User
Joined
Sep 8, 2005
Messages
280
Location
Netherlands
Hi,

I have piping setup correct. The php program works correct and I receive the email.

I have seen all the current threads about this issue but can't find a solution for this one.

Mail delivery failed: returning message to sender

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 /home/xxx/domains/xxx/private_html/admin/xxx.php
generated by [email protected]

The following text was generated during the delivery attempt:

------ pipe to | /usr/local/bin/php /home/xxx/domains/xxx/private_html/admin/xxx.php
generated by [email protected] ------
 
and what did you on the place.?
I try everything.
Set catch_all on dropped and completely ignored is not a option :(

I looking many forums about this , many peopel with this problem
Normaly is
"|/usr/local/bin/php -q /home/admin/domains/ssl.dotdns.be/public_html/pipe.php"
and NO space between |/usr

The script work Fine,
I try also with
return NULL;
?>

@ the bottom of the script , but no result.
Desepered :confused:
 
You can certainly write in dutch on this forum. Speaking in dutch would be a bit hard to hear :) .

And since most of us use english, you'll probably get better results in english.

Though maybe not :) .

Jeff
 
:p Writing in dutch will be as difficult to understand for you as the spoken messages

But is is allowed you mean ? Well I don't want to because of the reason you mentioned about the results but also because I understand it all better in english (Often I only know IT words in english).
 
Well it has been a while since anyone posted to this thread, but I am having the same problem. Piping works, I solved the problems with duplicates, but still getting Mail Delivery Error.

Apache 1.3.37
DirectAdmin 1.31.1
Exim 4.67
MySQL 4.1.22
 
I believe Onno understands this problem, and I know he speaks Dutch ;).

Onno?

Jeff
 
Really old post, but just came across this myself.

Fixed my editing exim.conf

amending transport return to this.

# This transport is used for handling pipe deliveries generated by alias
# or .forward files. If the pipe generates any standard output, it is returned
# to the sender of the message as a delivery error. Set return_fail_output
# instead of return_output if you want this to happen only when the pipe fails
# to complete normally. You can set different transports for aliases and
# forwards if you want to - see the references to address_pipe in the directors
# section below.

address_pipe:
driver = pipe
return_fail_output

virtual_address_pipe:
driver = pipe
group = nobody
return_fail_output
user = "${lookup{$domain}lsearch* {/etc/virtual/domainowners}{$value}}"


Hope this may help

Stuart
 
virtual host?

I am in virual host so I can edit exim.conf file. What can I do then?
 
What do you want to do? Your question is too ambiguous to get a reasonable response.

Jeff
 
If you're getting an empty bounce back like this:

he following text was generated during the delivery attempt:

------ pipe to |/home/xxxxxx/public_html/tkt/pipe.php
generated by [email protected] ------



------ This is a copy of the message, including all the headers. ------

You need to make sure that the first line of your script correctly tells where PHP is:

#!/usr/local/bin/php -q

Secondly, make sure your script is not outputting ANYTHING at all, anywhere, ever.

A common mistake is this:

#!/usr/local/bin/php -q

<?
//Php Code here...

See the blank line between the "#!" line and the "<?"... Yeah, that'll do it.

Happy coding!
 
Back
Top