PDA

View Full Version : Email Piping Help!



rolson
08-05-2008, 07:27 AM
I've decided to post this on both the developers forum and my hosting forum and any other relative forum in hopes that someone might be able to unconfuse me. (That won't be easy) I'm trying to setup OSTicket, which I have installed and working except for Local Email Piping. My websites and email systems are all on the same box.The developer (Peter) says in the wikki to insert
"|/usr/bin/php -q /path/to/api/pipe.php" for CPanel 11. And to set the chmod for pipe.php to 764. And don't forget the "".

The script pipe.php already has

#!/usr/bin/php -q
<?php

inserted on the top.

My hosting company says "If the script requires an interpreter such as perl or php, you should omit the "/usr/bin/perl, or /usr/bin/php portion." Make sure that your script is executable and has the appropriate Hasbang at the top of the script."

So the best I could come up with was to insert

"|/public_html/DOMAINFOLDER/SUBFOLDER/api/pipe.php"
then let CPanel 11 turn it into

|/home/USERNAME/public_html/DOMAINFOLDER/SUBFOLDER/api/pipe.php without "".

The domain is http://www.ars-support.com and the default email is support@ars-support.com which I'm trying to forward all on the same box. But things are not working.

This is the error I receive:

The following text was generated during the delivery attempt:

------ pipe to |/home/username/public_html/domainfolder/subfolder/api/pipe.php
generated by support@ars-support.com ------

Status: 404 Not Found
X-Powered-By: PHP/5.2.6
Content-type: text/html

No input file specified.

So the ? is where I'm I going wrong...I don''t know enough about php to know if this is a script issue or I'm not setting something up. I do have the email set up with my host and I do have local piping enabled in the admin panel of OSTicket. Any help would be great!

siguie
08-06-2008, 03:49 AM
Honestly I'm not sure what you are trying to do BUT I wrote a simple perl pipe and this is the line I use in the forwarder ...

|/home/DOMAIN-8/folder/pipe.pl

Domain-8 means 8 characters.

You might want to consider just writing a simple script that you can verify works otherwise I've got nothing ... sorry.

Good luck!