email piping

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
NumbLock27
Posts: 5
Joined: Sat Apr 14, 2012 12:04 am

email piping

Post by NumbLock27 »

hello all. I was just trying to find out how to set up email piping in hesk. The instructions are quite vague. I am especially lost in step 5: It says: Set up the email address to pipe data to the hesk_pipe.php file, for example to:
|/home/user/public_html/hesk/inc/mail/hesk_pipe.php

I am not sure what they are referring to. Any and all help will be appreciated
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: email piping

Post by Klemen »

The problem here is that each type of server/mail software has different instructions and a different way of setting up email piping.

If your server uses Cpanel you have an easy way of setting this step up as described here.

If you don't use Cpanel then setting up email piping most likely requires modifying server settings files. It would be up to your hosting company to do that so you will need to ask your hosting company to modify server files and setup email piping from "support@yourdomain.com" to the hesk_pipe.php script.

So there are no general instructions on how to do it, it all depends on the server software and knowledge/willingness of your hosting company to set this up for you.
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
NumbLock27
Posts: 5
Joined: Sat Apr 14, 2012 12:04 am

Re: email piping

Post by NumbLock27 »

Hello. Thank you for your reply. We have a fully self hosted solution also running plesk. I have full access to the server machine (ubuntu 10) but I just don't know how to set up the piping. Any help would be appreciated.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: email piping

Post by Klemen »

I didn't have a chance to test email piping on Plesk myself, but try this:

1. create an email address you will use just for piping

2. edit the .qmail file for the address you created, should be at

Code: Select all

/var/qmail/mailnames/[domain]/[address]/.qmail
The .qmail file should look something like this:

Code: Select all

| true
./Maildir/
Modify it to:

Code: Select all

|/full/path/to/hesk/inc/mail/hesk_pipe.php
(/full/path/to/hesk should of course be server path to your HESK installation).

3. Restart qmail, in ssh it should be

Code: Select all

service qmail restart
Let me know if this works for you.
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
NumbLock27
Posts: 5
Joined: Sat Apr 14, 2012 12:04 am

Re: email piping

Post by NumbLock27 »

I had tried that already with no success. I am getting this in the syslog:

Apr 14 20:53:49 ns392707 qmail: 1334429629.017365 delivery 38: deferral: PHP_Dep
recated:__Comments_starting_with_'#'_are_deprecated_in_/etc/php5/cli/conf.d/imap
.ini_on_line_1_in_Unknown_on_line_0/PHP_Warning:__Directive_'safe_mode'_is_depre
cated_in_PHP_5.3_and_greater_in_Unknown_on_line_0/Extension_'/var/www/vhosts/mem
bership.omegainteractive.co.uk/helpdesk/inc/mail/hesk_pipe.php'_not_present./

I have verified the file and it's permissions but it has no effect. No bounce is generated and no tickets are created.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: email piping

Post by Klemen »

Do you have the | at the begging of the line in .qmail file?
Is hesk_pipe.php chmod to 755?

Any luck if you try:

Code: Select all

| php -q /var/www/vhosts/membership.omegainteractive.co.uk/helpdesk/inc/mail/hesk_pipe.php
How about if you try quotes around all this:

Code: Select all

"| php -q /var/www/vhosts/membership.omegainteractive.co.uk/helpdesk/inc/mail/hesk_pipe.php"
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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: email piping

Post by Klemen »

P.s. - are you sure "membership.omegainteractive.co.uk/helpdesk" us correct? Doesn't work in the browser (404).
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
NumbLock27
Posts: 5
Joined: Sat Apr 14, 2012 12:04 am

Re: email piping

Post by NumbLock27 »

I finally got it working. I fiddled around with permissions and scripts until I finally got it working. But thank you so much for your help!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: email piping

Post by Klemen »

Could you share how you got it working please so other Plesk users can set it up themselves?
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
NumbLock27
Posts: 5
Joined: Sat Apr 14, 2012 12:04 am

Re: email piping

Post by NumbLock27 »

yep. I went into the qmail user's queue and changed the .qmail file to pipe messages to |/your/path/to/hesk_pipe.php. I did a lot of fiddling with permissions but I think it was the qmail change that got it working,.
Post Reply