MACscr Posted August 13, 2006 Share Posted August 13, 2006 Im running whmcs on a plain centos box, but im continuing to run my email on a cpanel server. Will email piping work with a path like this? | php -q [url]http://domain.com/whmcs/pipe/pipe.php[/url] 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 13, 2006 WHMCS CEO Share Posted August 13, 2006 No, for piping to work, the piping files need to be on the same server as where the email arrives as it has to connect to the servers mailbox locally to retrieve the email. A POP email import will probably be added in the future which would allow this. Matt 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 13, 2006 Author Share Posted August 13, 2006 dangit. Thats really bad. i had already asked earlier this month if their was an issue with the mail servers being seperate and everyone said no. So is their a way to install that piping file and maybe just the configuration file on the mail server? I have no plans of running any type of mail server on the server that whmcs is currently running on. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 13, 2006 Author Share Posted August 13, 2006 Nope, i dont want to do that either as that would involve giving that server access to my whmcs db. This is really crappy. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 13, 2006 Author Share Posted August 13, 2006 I also dont see anywhere in the SMTP settings to set that outgoing mail requires authentication. This is default with cpanel servers AFAIK. 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted October 30, 2006 Share Posted October 30, 2006 I have the same issue here. Might be forced to use Cerberus instead until WHMCS can support off-server email piping. Matt, any idea when this will be possible? Or at least have an option to use POP import. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 30, 2006 WHMCS CEO Share Posted October 30, 2006 Matt, any idea when this will be possible? Or at least have an option to use POP import. For email piping from a seperate server - POP3 is the ONLY option. A mail piping setup by an email forwarder would not work - no matter what you do. POP3 import will be added once the demand is great enough. It's not like other features that can be added easily - I don't know how to code a POP3 import so won't be in the near future. Matt 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted October 31, 2006 Share Posted October 31, 2006 Actually, POP3 is not the only option. Check out the way Cerberus and many other helpdesk scripts do it. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted October 31, 2006 Author Share Posted October 31, 2006 Actually, POP3 is not the only option. Check out the way Cerberus and many other helpdesk scripts do it. what does that have to do with whmcs? he was only commenting on whmcs. 0 Quote Link to comment Share on other sites More sharing options...
s1rk3ls Posted October 31, 2006 Share Posted October 31, 2006 You could also use a script to poll pop3 mailboxes and pipe them to your script - one such commercial ($4.99) perl script is "POP2PIPE" http://www.emailsoftwaretools.com/emailaccount.html I'm sure something similar exists for free or could easily be created. This would provide an alternative to the pipe only requirements of WHMCS until such time as that changes. Note however, tickets would be delayed by however often your script runs rather than almost instantly as it is now with email piping. (A user creates a ticket by sending an email, and instead of receiving an email back within a few seconds, they will not receive anything until your next cron run such as 5-10 minutes.) 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted November 1, 2006 Share Posted November 1, 2006 Actually, POP3 is not the only option. Check out the way Cerberus and many other helpdesk scripts do it. what does that have to do with whmcs? he was only commenting on whmcs. MACscr, Read Matt's post then read my reply again. Matt was saying that off-server piping can only be done via POP import and that he was not sure how to do that so it wont be anytime soon. So I was just trying to inform him that POP import is not the only way to do off-server piping. Cerberus and other software do it by seperating the piping function from the main script and allowing users to host the piping files in seperate servers. My reply was polite and not meant to antagonise. No need for a reply like yours Cheers.... 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted November 1, 2006 Share Posted November 1, 2006 Thanks Kristopher, I might just check that script out and get it. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted November 1, 2006 Author Share Posted November 1, 2006 Actually, POP3 is not the only option. Check out the way Cerberus and many other helpdesk scripts do it. what does that have to do with whmcs? he was only commenting on whmcs. MACscr, Read Matt's post then read my reply again. ........ Cerberus and other software do it by seperating the piping function from the main script and allowing users to host the piping files in seperate servers. My reply was polite and not meant to antagonise. No need for a reply like yours Cheers.... This can already be done and is still done with POP3. I do it myself as i host whmcs on a plain centos server, but i still run my email on a cpanel server. All i did was setup the files on the cpanel server, then changed the configuration.php file to connect to my whmcs database. Works great. 0 Quote Link to comment Share on other sites More sharing options...
s1rk3ls Posted November 1, 2006 Share Posted November 1, 2006 This can already be done and is still done with POP3. I do it myself as i host whmcs on a plain centos server, but i still run my email on a cpanel server. All i did was setup the files on the cpanel server, then changed the configuration.php file to connect to my whmcs database. Works great. That's a very simple idea - I didn't think about doing it that way. Makes sense as all it's doing is getting the email and dumping it into a database Just have to make sure the ip of your cpanel server is allowed to connect to mysql on your plain server running WHMCS. Does this cause any licensing issues, having part of the script run on a different server? (I don't know if the piping functionality does a license check or if it just works on its own?) 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted November 1, 2006 Share Posted November 1, 2006 MACscr, That is a pretty different situation and will not work for me. Wont go into details but I need the main whmcs files (not just the database) on a seperate server. If it is just to point to a different database, I see no point in that really Thanks anyway for the suggestion. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 1, 2006 WHMCS CEO Share Posted November 1, 2006 Our licensing system will allow the piping section of the system to run. You would not however be able to access the admin area on this seperate domain. You would just need 7 files for it to function: configuration.php dbconnect.php pipe/pipe.php pipe/pipefunctions.php includes/functions.php includes/adminfunctions.php includes/ticketfunctions.php Matt 0 Quote Link to comment Share on other sites More sharing options...
s1rk3ls Posted November 1, 2006 Share Posted November 1, 2006 MACscr, That is a pretty different situation and will not work for me. Wont go into details but I need the main whmcs files (not just the database) on a seperate server. If it is just to point to a different database, I see no point in that really Thanks anyway for the suggestion. Your database, and WHMCS would be on a seperate server, one that would NOT require a mailserver to be running. On your cPanel (or other server that hosts the mail account for your tickets) you would place the files Matt mentioned somewhere on that server and pipe mail to it. The only difference is that instead of the database connecting to "localhost" it would be connecting to the IP of the seperate server containing WHMCS. Note: On your seperate, plain CentOS machine, you would have to allow connections to MySQL from the IP of the server piping the mail as typically MySQL is configured to only allow connections from localhost. I hope this clears up the confusion 0 Quote Link to comment Share on other sites More sharing options...
nivlek78 Posted November 1, 2006 Share Posted November 1, 2006 Kristopher, I read and re-read his post and I am pretty sure MACscr was referring to a different scenario. Furthermore, until Matt's post, there was no indication or mention of the files involved in the piping process and whether it could be seperated from main script and put into seperate server. What you just mentioned is EXACTLY what I was trying to point out from the start..about how cerberus, kayako etc allows users to seperate the piping function and allow it to be located on a seperate server. If that was MACscr's original proposal, then I apologise. Matt, thanks for the heads-up..Will try it now. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted November 1, 2006 Author Share Posted November 1, 2006 Kristopher, I read and re-read his post and I am pretty sure MACscr was referring to a different scenario. Furthermore, until Matt's post, there was no indication or mention of the files involved in the piping process and whether it could be seperated from main script and put into seperate server. What you just mentioned is EXACTLY what I was trying to point out from the start..about how cerberus, kayako etc allows users to seperate the piping function and allow it to be located on a seperate server. If that was MACscr's original proposal, then I apologise. Matt, thanks for the heads-up..Will try it now. Exactly what i was pointing out. i just wasn't going to waste my time explaining things in detail because I figured you could just run with the concept. I actually spoke yesterday with Matt on chat about your situation and made the recommendation of what he just posted. It might have appeared like i was having a bad attitude, but i went out of my way to help you. I appreciate the apology. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted December 14, 2006 Author Share Posted December 14, 2006 Our licensing system will allow the piping section of the system to run. You would not however be able to access the admin area on this seperate domain. You would just need 7 files for it to function: configuration.php dbconnect.php pipe/pipe.php pipe/pipefunctions.php includes/functions.php includes/adminfunctions.php includes/ticketfunctions.php Matt found out that: includes/class.smtp.phpincludes/class.phpmailer.phpincludes/customfieldfunctions.php are also needed to get it to work. Make sure you always update your piping files when you update your main whmcs install as well. I forgot to do that and realized thats why my piping wasnt working anymore. 0 Quote Link to comment Share on other sites More sharing options...
KAIDOK Posted July 29, 2008 Share Posted July 29, 2008 I have done this, copied files, and am trying to get this to work with a different accounts support e-mail that resides on the same Cpanel CentOS server. I have the address forwarded to the pipe and myself but I only get the e-mail to myself. It is getting lost somewhere during the piping process and never makes it to my whmcs installation. Any Ideas? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 29, 2008 Author Share Posted July 29, 2008 I have done this, copied files, and am trying to get this to work with a different accounts support e-mail that resides on the same Cpanel CentOS server. I have the address forwarded to the pipe and myself but I only get the e-mail to myself. It is getting lost somewhere during the piping process and never makes it to my whmcs installation. Any Ideas? look at your logs. Its most likely a php error, ioncube error, or path error. Heck, could be all of the above. =P 0 Quote Link to comment Share on other sites More sharing options...
KAIDOK Posted July 29, 2008 Share Posted July 29, 2008 If it was a path error I would expect a NDN to be returned and it is not ioncube as I have no issues with it piping to an e-mail for the account that has WHMCS installed, which also leads me to believe that it is not a php error. What log file are you referring to so I can look at it? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 29, 2008 Author Share Posted July 29, 2008 If it was a path error I would expect a NDN to be returned and it is not ioncube as I have no issues with it piping to an e-mail for the account that has WHMCS installed, which also leads me to believe that it is not a php error. What log file are you referring to so I can look at it? You cant pipe to an external url. I would check your /var/log/messages log and maybe /var/log/exim_mainlog 0 Quote Link to comment Share on other sites More sharing options...
skyknight Posted July 31, 2008 Share Posted July 31, 2008 found out that: includes/class.smtp.phpincludes/class.phpmailer.phpincludes/customfieldfunctions.php are also needed to get it to work. Make sure you always update your piping files when you update your main whmcs install as well. I forgot to do that and realized thats why my piping wasnt working anymore. Not working for me, got this error: Warning: main(/home/xxxx/public_html/whmcs/../dbconnect.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/whmcs/pop.php on line 0 Fatal error: main() [function.require]: Failed opening required '/home/xxxx/public_html/whmcs/../dbconnect.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/whmcs/pop.php on line 0 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.