
|
View Full Version : WHMCS Help - Email Piping
FTN BLZZRD 08-15-2007, 12:35 PM Oh man, am I lost. I could use a bit of help from someone who has used WHMCS before. Everything is setup and good to go, I even got done coding my custom template. I just need to configure the email piping for support. It seems there are two ways to do this. One is with the POP3, and the other is piping. I currently have the POP3 set up with the cron and eveything is working great there. However, I want to use piping.
Here is what I found in the WHMCS manual...
Using email piping is the best method for dealing with support emails whenever possible. To do this, login to your control panel and go to the Email Forwarders section where you can configure mail forwarding. You then need to setup a new forwarder for the email you want to be piped to go to the command as shown on the Support Departments page in the admin area. If using DirectAdmin, you must enter the command enclosed in quotes "" for it to be accepted.
I don't quite understand though. Do I set up a dedicated email for WHMCS and forward all email to that?
Where do I enter the command?
| php -q /***/*****/public_html/***/pipe.php
Thanks for any and all help in advanced.
iHubNet 08-15-2007, 12:41 PM "POP3 set up with the cron"? You need to choose.. POP3 pipe emails or email forward to pipe it...
if you are going to pipe it by forward, you need to do email1@domain.com to forward to | php part... and it should work.
FTN BLZZRD 08-15-2007, 12:41 PM Thanks iHubNet. I never saw the "Pipe to program" in CPanel before.
However, I have my WHMCS and the domain that my eMail accounts are on, on different CPanels. So I can't get the path to go to the piping program from one CPanel to the other account.
iHubNet 08-15-2007, 12:50 PM As you figured out.. I think you can figured that out too :)
You can solve that problem with forwarding.
FTN BLZZRD 08-15-2007, 01:39 PM HAHA. Wow, the simplest things....
I honestly feel stupid. Thanks alot iHubNet.
MACscr 08-15-2007, 03:36 PM just a quick question, why are you asking questions about WHMCS here versus their forums?
jerett 08-15-2007, 03:43 PM You don't have to have that email address setup as an account either. ;)
@ MACscr - WHT has probably the most WHMCS users on it then any other forum and asking a simple question like PIPING, the OP probably didn't want to bother Matt with it.
FTN BLZZRD 08-15-2007, 04:09 PM just a quick question, why are you asking questions about WHMCS here versus their forums?
Just as jerret pointed out. I looked for assistance on their support system/forums for a little more advanced stuff. I created some modifications to fit my needs and needed a little more technical advice which I got from there.
However, I was already browsing WHT and figured...40 other people were on this forum too. So I just made this quick thread.
Thanks alot to all that helped. I got it figured out.
For future users, do NOT use the "Pipe to program..." field in CPanel 11. Instead, switch to the x2 theme and add the piping commande as the EMAIL in the forward settings.
Also, jerret...why do I not want this to be an account?
jerett 08-15-2007, 04:14 PM When setting up piping you don't have to have the address@domain.com an account. If you do - you might find that all tickets are getting left on your server not only in your helpdesk but in your mail folders as well.
FTN BLZZRD 08-15-2007, 04:15 PM When setting up piping you don't have to have the address@domain.com an account. If you do - you might find that all tickets are getting left on your server not only in your helpdesk but in your mail folders as well.
Makes sense. Don't want to waste disc space. Thanks a ton man.
cPanelDavidG 08-15-2007, 04:18 PM ...
For future users, do NOT use the "Pipe to program..." field in CPanel 11. Instead, switch to the x2 theme and add the piping commande as the EMAIL in the forward settings.
...
Is there an issue with email piping with the X3 theme that we should be aware of that makes you want to use the X2 theme instead? I've used email piping with cPanel 11/X3 without issue, hence my inquiry.
FTN BLZZRD 08-15-2007, 04:40 PM Is there a specific problem that I can identify, no. However here is what happened...
As you may know the command from WHMCS is as follows
| php -q /home/cliente/public_html/pipe/pipe.php
In the x3 theme, when I enter that command...I obviously can't as the command is already started in the input box with the 'home' icon. So you MUST enter....
public_html/pipe/pipe.php
Leaving the rest out. When I did it this way, it did not work. Then, I remember in CPanel 10 when I had this running, I simply entered the full command...
| php -q /home/cliente/public_html/pipe/pipe.php
...where the email address was supposed to go, which worked back then. In x3, if I enter that command as the EMAIL, I get a prompt asking me to "Enter a valid" email address. Meaning, if I wanted to point to a script I had to use the 'Pipe to a program' field, which did not work.
So then I switched to the x2 theme and entered the full command in the email field as shown here...
Image (http://img510.imageshack.us/img510/623/cpanelxvp9.jpg)
It all worked.
Sorry I could not be of any more help. It is possible that it is a problem with the WHMCS script. They did fix a bug with the email piping with CPanel as per their changelog in 3.2.
cPanelDavidG 08-15-2007, 04:46 PM Is there a specific problem that I can identify, no. However here is what happened...
As you may know the command from WHMCS is as follows
| php -q /home/cliente/public_html/pipe/pipe.php
In the x3 theme, when I enter that command...I obviously can't as the command is already started in the input box with the 'home' icon. So you MUST enter....
public_html/pipe/pipe.php
Leaving the rest out. When I did it this way, it did not work. Then, I remember in CPanel 10 when I had this running, I simply entered the full command...
| php -q /home/cliente/public_html/pipe/pipe.php
...where the email address was supposed to go, which worked back then. In x3, if I enter that command as the EMAIL, I get a prompt asking me to "Enter a valid" email address. Meaning, if I wanted to point to a script I had to use the 'Pipe to a program' field, which did not work.
So then I switched to the x2 theme and entered the full command in the email field as shown here...
Image (http://img510.imageshack.us/img510/623/cpanelxvp9.jpg)
It all worked.
Ah, I see.
The way I did it is to put a hashbang at the top of my PHP script and set permissions to 755 like I would for a PHP Shell Script. That helped me avoid the need for php -q.
However we are working on functionality that would avoid the need for setting permissions and inserting the appropriate hashbang.
FTN BLZZRD 08-15-2007, 04:51 PM Putting it in the file works too I guess.
I just read about hashbang notice in the x3 theme. It has a link to a Wikipedia article explaining it all.
Should've read before I made a big deal out of it... :).
However, yes. Updating CPanel to include such functionality would be nice. However, its not really a major thing. How often do you set things up like this? Once!
Once again, thanks for the help guys. Everything is working just as it should.
jerett 08-15-2007, 05:00 PM FTN BLZZRD -
Anytime on the support. Would love to hear more about your changes to WHMCS. If your up to sharing - shoot a PM my way.
Wish you the best and hope to continue seeing you around on the boards.
|