Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    58

    Default Email Pipeing

    Hello, I am trying to pipe all of my email to public_html/email/lib/pipe.php however I am unsure how to do it.

    I went into cPanel and changed the default address to |/public_html/email/lib/pipe.php; that didn't work so I tryed |/home/MYUSERNAME/public_html/email/lib/pipe.php which also didn't work.

    Does anyone know how I can do this? Also, what would I enter?

    Thank you very much.

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Try setting it to
    |php /home/MYUSERNAME/public_html/email/lib/pipe.php
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default Re: Email Pipeing

    Originally posted by Izkabola
    Hello, I am trying to pipe all of my email to public_html/email/lib/pipe.php however I am unsure how to do it.

    I went into cPanel and changed the default address to |/public_html/email/lib/pipe.php; that didn't work so I tryed |/home/MYUSERNAME/public_html/email/lib/pipe.php which also didn't work.

    Does anyone know how I can do this? Also, what would I enter?

    Thank you very much.
    we have a similar setup with a perl script, I believe you need to enclose the pipe in double quotes like so:
    Code:
    "|/home/MYUSERNAME/public_html/email/lib/pipe.php"
    and yes, it has to be the full path to the script, not a relative path.

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  4. #4
    Member
    Join Date
    Aug 2003
    Posts
    58

    Default

    Thank you, that worked. The only problem is the person gets an email saying the email didn't go through when it actually did.

    Do you have any suggestions? Thank you.

    EDIT: In reply to squirrel
    Last edited by Izkabola; 06-05-2004 at 08:41 PM.

  5. #5
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Originally posted by Izkabola
    Thank you, that worked. The only problem is the person gets an email saying the email didn't go through when it actually did.

    Do you have any suggestions? Thank you.
    well, not sure how your php scrippt is processes the email, I am by no means a PHP programmer, stickly Perl We use a module called Mail::Audit to process the email.

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Originally posted by Izkabola
    Thank you, that worked. The only problem is the person gets an email saying the email didn't go through when it actually did.

    Do you have any suggestions? Thank you.

    EDIT: In reply to squirrel
    I'm not certain, but it could be the script that does that, or maybe something needs to be done in the script to stop it. PHP isn't my language. Like mickalo, I'm a perl user. I just wrote my first real php script 2 days ago. That's how I knew about needing php in front. My script was for a cron job and I had to figure that out to get it to run.

    What is the message the sender gets?
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member
    Join Date
    Aug 2003
    Posts
    58

    Default

    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/email/lib/pipe.php
    generated by address@iSENTitTO.com

    The following text was generated during the delivery attempt:

    ------ pipe to |php /home/USERNAME/public_html/email/lib/pipe.php
    generated by address@iSENTitTO.com ------

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


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

    Return-path: <address@iSENTitTO.com>
    Received: from cpanel by s1.inlope.com with local (Exim 4.24)
    id 1BWmDJ-0004et-DC
    for address@iSENTitTO; Sat, 05 Jun 2004 18:12:41 -0700
    Received: from 67.164.44.106 ([67.164.44.106])
    by inlope.com (IMP) with HTTP
    for <address@iSENTitTO.com@localhost>; Sat, 5 Jun 2004 18:12:41 -0700
    Message-ID: <********************@domain.com>
    Date: Sat, 5 Jun 2004 18:12:41 -0700
    From: sent@address.com
    To: address@iSENTitTO.com
    Subject: test1
    MIME-Version: 1.0
    Content-Type: text/plain
    Content-Transfer-Encoding: 7bit
    User-Agent: Internet Messaging Program (IMP) 3.2.2
    X-Originating-IP: ****************

    testfsa

  8. #8
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Maybe it's because it's not actually going to an email account. I'm not sure. You could try setting the email address to forward to :blackhole: and to the script to see if that allows it to go to the script and stops the failure message.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  9. #9
    Member
    Join Date
    Aug 2003
    Posts
    58

    Default

    I don't get the message if I do that.

  10. #10
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    use |php -q /path/to/file

    That will surpress the:
    Content-type: text/html
    X-Powered-By: PHP/4.3.3

  11. #11
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Originally posted by Faldran
    use |php -q /path/to/file

    That will surpress the:
    Content-type: text/html
    X-Powered-By: PHP/4.3.3
    Thanks. I was wondering if I could get rid of that from my cron job script output.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  12. #12
    Member
    Join Date
    Aug 2003
    Posts
    58

    Default

    Great thank you.

  13. #13
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    Default

    Thankyou Squirrel (mainly) and everyone else.

    I would have never have got this myself. ( the "|php /path/bit/....." )

    Very useful.

Similar Threads & Tags
Similar threads

  1. Replies: 10
    Last Post: 06-20-2011, 03:04 PM
  2. Replies: 4
    Last Post: 08-15-2010, 10:28 PM
  3. Replies: 9
    Last Post: 04-15-2008, 04:44 AM
  4. Email prob: Failed to find group and email forward problem?
    By webcs in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-15-2004, 11:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube