problem with email piping

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
Ludwig
Posts: 5
Joined: Wed Nov 09, 2011 11:23 am

problem with email piping

Post 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 !!!
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: problem with email piping

Post by Klemen »

Is the hesk_pipe.php script executable (chmoded 0755)?

Is the path to hesk_pipe 100% correct (paths are CaSe SenSitiVe)?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Ludwig
Posts: 5
Joined: Wed Nov 09, 2011 11:23 am

Re: problem with email piping

Post 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....
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: problem with email piping

Post 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;
?>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Ludwig
Posts: 5
Joined: Wed Nov 09, 2011 11:23 am

Re: problem with email piping

Post 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 !!
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: problem with email piping

Post by Klemen »

Do you have "Email piping" enabled in HESK Settings (Admin panel > Settings > Help Desk > Features)?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Ludwig
Posts: 5
Joined: Wed Nov 09, 2011 11:23 am

Re: problem with email piping

Post 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
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: problem with email piping

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Ludwig
Posts: 5
Joined: Wed Nov 09, 2011 11:23 am

Re: problem with email piping

Post by Ludwig »

i think is correct.
Thank you for help
I'll test the system and i return here for give you results.
jrewolinski
Posts: 8
Joined: Tue Aug 04, 2009 6:01 pm

Re: problem with email piping

Post 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.
Post Reply