Page 1 of 1

problem with email piping

Posted: Wed Nov 09, 2011 11:30 am
by Ludwig
Script URL:
Version of script: hesk 2.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi,
sorry for my english. im testing hesk 2.3 for replace eticket system.
I have a problem with email piping.
i utilize the hesk_pipe.php script located at /opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php

any mail return to sender with this message:

<helpdesk@Wopr2> (expanded from <helpdesk>): Command died with status 1:
"/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php". Command output:
Extension '/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php' not present.

what is the problem ???
the incipit of the script is this:

#!/opt/lampp/bin/php -q
#!/usr/bin/php -q
<?php
/*******************************************************************************
* Title: Help Desk Software HESK
* Version: 2.3 from 15th September 2011
* Author: Klemen Stirn
* Website: http://www.hesk.com
********************************************************************************
* COPYRIGHT AND TRADEMARK NOTICE
* Copyright 2005-2011 Klemen Stirn. All Rights Reserved.
* HESK is a registered trademark of Klemen Stirn.

* The HESK may be used and modified free of charge by anyone
* AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
* By using this code you agree to indemnify Klemen Stirn from any
* liability that might arise from it's use.

* Selling the code for this program, in part or full, without prior
* written consent is expressly forbidden.

* Using this code, in part or full, to create derivate work,
* new scripts or products is expressly forbidden. Obtain permission
* before redistributing this software over the Internet or in
* any other medium. In all cases copyright and header must remain intact.
* This Copyright is in full effect in any country that has International
* Trade Agreements with the United States of America or
* with the European Union.

* Removing any of the copyright notices without purchasing a license
* is expressly forbidden. To remove HESK copyright notice you must purchase
* a license for this script. For more information on how to obtain
* a license please visit the page below:
* https://www.hesk.com/buy.php
*******************************************************************************/

define('IN_SCRIPT',1);
#define('HESK_PATH','../../');
define('HESK_PATH','/opt/lampp/htdocs/hesk23/');





please help me !!!

Re: problem with email piping

Posted: Wed Nov 09, 2011 11:57 am
by Klemen
Is the hesk_pipe.php script executable (chmoded 0755)?

Is the path to hesk_pipe 100% correct (paths are CaSe SenSitiVe)?

Re: problem with email piping

Posted: Wed Nov 09, 2011 12:22 pm
by Ludwig
yes

all paths correct.

755 ok for hesk_pipe.php

nothing.. ever same message...:


<helpdesk@Wopr2> (expanded from <helpdesk>): Command died with status 1:
"/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php". Command output:
Extension '/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php' not present.

not understand whereis the problem....

Re: problem with email piping

Posted: Wed Nov 09, 2011 2:20 pm
by Klemen
It must be something wrong in piping setup, but I am afraid I don't know what.

Can you get a simple test script working to pipe, for example

Code: Select all

#!/opt/lampp/bin/php -q
<?php

mail('you@yourmail.com','Test email piping','This is a test message');

return NULL;
?>

Re: problem with email piping

Posted: Wed Nov 09, 2011 3:34 pm
by Ludwig
Ok.

i have tested the script...
nothing appears...
the mail.err log is ok and nothing is writed on...
same thing on mail.log.. the mail start correctly...
the mail message is correctly passed to the script...but...

any ticket is created...

where i can read the log of hesk?
the hesk's debug system produce any log?
i dont understand whereis the problem...

after removing your script test.. same result:

<helpdesk@Wopr2> (expanded from <helpdesk>): Command died with status 1:
"/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php". Command output:
Extension '/opt/lampp/htdocs/hesk23/inc/mail/hesk_pipe.php' not present.


thank you for help !!! i appreciate !!

Re: problem with email piping

Posted: Wed Nov 09, 2011 4:45 pm
by Klemen
Do you have "Email piping" enabled in HESK Settings (Admin panel > Settings > Help Desk > Features)?

Re: problem with email piping

Posted: Thu Nov 10, 2011 8:13 am
by Ludwig
yes.
email piping is enabled :(

there is a place how i can find logs about the passage from mail to php pipe file ?!?!
i can post you all file configuration if you want to check it

Re: problem with email piping

Posted: Thu Nov 10, 2011 12:37 pm
by Klemen
The problem is your piping fails before even coming to HESK so you should check your server logs, no HESK error messages are being generated.

Re: problem with email piping

Posted: Thu Nov 10, 2011 3:22 pm
by Ludwig
i think is correct.
Thank you for help
I'll test the system and i return here for give you results.

Re: problem with email piping

Posted: Tue Feb 07, 2012 2:55 am
by jrewolinski
I had this exact same problem.

I downloaded the hesk_pipe.php file and used notepad++ to convert the EOL to UNIX format.

There's another post about the end of line characters being incorrect. Probably because I originally opened it on windows.