Jump to content

piping with seperate email server


MACscr

Recommended Posts

  • WHMCS CEO

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...
  • WHMCS CEO
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

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
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.php
    includes/class.phpmailer.php
    includes/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.

Link to comment
Share on other sites

  • 1 year later...

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

found out that:

 

    includes/class.smtp.php
    includes/class.phpmailer.php
    includes/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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated