Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    72

    Question Email Piping Problems

    I'm trying to set up piping email to a PHP script. When I went to bed last night, it was working FINE. Tonight, when I send myself a test message, I get mail delivery bounce back messages. The following is at the bottom of the error message (right before it shows the message and headers that it was trying to process).

    I was getting the same message last night, but I kept trying different things and eventually the errors stopped. Once it started working, I copied the script files to a safe location. When I saw that the error was back again, I copied the files from the safe location back to the server again. The error won't go away. Regardless of the bounce message, the script DOES process.

    I've made sure the script and the folder it's in has permissions set to 755.

    I've also noticed that if I send a message from an address that's not in my domain, the bounce message does NOT seem to be sent. I sent several from my work address and several from a free webmail account that I have.

    This is making me coo-koo!

    PHP Warning: Zend Optimizer does not support this version of PHP - please upgrade to the latest version of Zend Optimizer in Unknown on line 0
    X-Powered-By: PHP/5.1.6
    Content-type: text/html

  2. #2
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default UPDATE: This has gotten even STRANGER!

    Before going to bed last night, I continued to try and figure this out. I kept trying different things and sending test messages. I got this bounce back message NO MATTER WHAT I DID.

    This morning, I sent another test message before I changed ANYTHING. I did NOT receive a bounce back.

    What would cause it to go from NOT working to working without my making changes?

  3. #3
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default

    I stand corrected. The bounce back DID come in this AM.

    I just didn't see it.

  4. #4
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Did you upgrade Zend?
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  5. #5
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default

    Quote Originally Posted by webtiva View Post
    Did you upgrade Zend?
    No I didn't.

    1) I'm a shared hosting user.

    2) Why would trying to run a php script (of ANY type--piped or otherwise) tell me that error message?

    I'm still TOTALLY befuddled why it was working with NO ERROR MESSAGES when I went to bed Thursday night but when I got home Friday night, the error messages hd returned.

  6. #6
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default Another update

    After my last reply, I sent my host a link to this thread.

    I just received an email telling me that it's been updated & asking to try again. I'll do that as soon as I get home.

  7. #7
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default

    Well I got home and tested it. The zend optimizer error is gone. But I'm still getting bounce backs.

    When I go to a shell and type which php, it tells me /usr/local/bin/php. I've tried putting that full path in the pipe call and in the shebang line both. I've tried /usr/bin/php as well (this folder also has a php file).

    This is what gets bounced back.
    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 /home/username/EmailHandlers/EmailHandler.php 1 0
    generated by address@mydomain.com

    The following text was generated during the delivery attempt:

    ------ pipe to |/usr/local/bin/php /home/username/EmailHandlers/EmailHandler.php 1 0
    generated by address@mydomain.com ------

    #!/usr/bin/php -q

    ------ This is a copy of the message, including all the headers. ------
    From here down, it just shows the message's headers and body.
    The message DOES get process correctly--but these bounce backs get thrown. And they still SEEM to only get thrown if the sender is one of my own domains. PUZZLING!

  8. #8
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default UPDATE: Seems to be fixed.

    Still no clue why it was throwing bounce backs.

    But since my host fixed the zend issue, I decided to start over and went back to the basics and little by little added everything that I need my script to do.

    It's now doing everything without throwing bounce backs. I just hope it stays that way (remember that when I went to bed on Thursday night, it was working too).

Similar Threads & Tags
Similar threads

  1. Email Piping
    By rligg in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-23-2008, 05:28 PM
  2. Email Piping Problems
    By doni49 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-17-2007, 11:22 PM
  3. 2 problems: piping error and imap problem
    By thernes in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-21-2006, 06:49 AM
  4. Replies: 1
    Last Post: 06-20-2003, 01:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube