Page 1 of 1
email piping
Posted: Sat Apr 14, 2012 12:11 am
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
Re: email piping
Posted: Sat Apr 14, 2012 8:36 am
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.
Re: email piping
Posted: Sat Apr 14, 2012 4:01 pm
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.
Re: email piping
Posted: Sat Apr 14, 2012 5:00 pm
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:
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
Let me know if this works for you.
Re: email piping
Posted: Sat Apr 14, 2012 7:11 pm
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.
Re: email piping
Posted: Sat Apr 14, 2012 7:39 pm
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"
Re: email piping
Posted: Sat Apr 14, 2012 7:50 pm
by Klemen
P.s. - are you sure "membership.omegainteractive.co.uk/helpdesk" us correct? Doesn't work in the browser (404).
Re: email piping
Posted: Sat Apr 14, 2012 8:38 pm
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!
Re: email piping
Posted: Sun Apr 15, 2012 10:14 am
by Klemen
Could you share how you got it working please so other Plesk users can set it up themselves?
Re: email piping
Posted: Sun Apr 15, 2012 3:04 pm
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,.