homepage Welcome to WebmasterWorld Guest from 54.161.236.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Forwarding Email to Script Causes Bounce
Script work but also causes bounce
Philosopher




msg:3261779
 6:09 pm on Feb 23, 2007 (gmt 0)

Ok...so I have an email setup at example@example.com

I have a forwarder setup so that when an order is made, an email sent to example@example.com gets forwarded to the script.

The code for the forwarder in cpanel is

"¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1"

Everything works perfectly..sort of.

The email gets forwarded, the script executes and works as planned. Unfortunately, after that, I also get a bounce message stating..

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 ¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1
generated by example@example.com

The following text was generated during the delivery attempt:

------ pipe to ¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1
generated by example@example.com ------

X-Powered-By: PHP/4.4.4
Content-type: text/html

I am having a heck of a time trying to suppress the message.

Any ideas?

 

Philosopher




msg:3261925
 7:38 pm on Feb 23, 2007 (gmt 0)

Nevermind...figured it out finally.

just needed to add -q to the forward instructions

"Šphp -q /home/USERNAME/public_html/path/to/handler.php"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved