Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
msteudel Offline
Member
 
Posts: 30
Join Date: Apr 2004
Piping on seperate server - 15-07-2005, 07:58 PM

Whats the new file to point mail aliases at with the v3?

In the old v2 you set your /etc/aliases file like:

email: "/etc/smrsh/pop3pipe.php"

Or something like that ...
   
Reply With Quote
  (#2) Old
msteudel Offline
Member
 
Posts: 30
Join Date: Apr 2004
15-07-2005, 09:57 PM

Anyone know how to setup mail parsing on a seperate server from the main installation?
   
Reply With Quote
  (#3) Old
w00d Offline
Member
 
Posts: 41
Join Date: Feb 2005
Location: Atlanta, Georgia
16-07-2005, 12:34 AM

Quote:
Originally Posted by msteudel
Anyone know how to setup mail parsing on a seperate server from the main installation?
I was able to get "piping" to work by using a combination of SSH and sudo. I can give details to help you set it up between your servers if you'd like, provided your servers are not running Windows.
   
Reply With Quote
  (#4) Old
msteudel Offline
Member
 
Posts: 30
Join Date: Apr 2004
16-07-2005, 01:37 AM

That'd be great, yah I'm running RHAS boxes and have full root. I tried piping to the parse.php but I don't think was the right file ...

* The two boxes can already talk to each other via MySQL so thats all good.

* I've just copied the upload directory up, but haven't run the setup.php as I we didn't have to do that with the older version.

* I know how to setup the alias file and pipe an alias to a script

Mark

Last edited by msteudel; 16-07-2005 at 01:39 AM.
   
Reply With Quote
  (#5) Old
w00d Offline
Member
 
Posts: 41
Join Date: Feb 2005
Location: Atlanta, Georgia
16-07-2005, 09:14 PM

I'll give you specific instructions for how I have piping set up between two of our servers. Since your configuration may not match our configuration exactly, you'll have to make some modifications to get this working on your set up.

The first thing you will need is a shell account on both your mail and web servers. For this discussion, we'll call the user "maint." Set up public/private key encryption between the maint account on both the web server and the mail server so the maint user can SSH from the mail server to the web server without needing a password. Search google for "passwordless SSH login" for instructions on how to do this.

Our mail server uses vpopmail and qmail for mail delivery so all email is owned by the vpopmail user. I use sudo to allow the vpopmail user to execute a command on behalf of the maint user. To do this, I have the following line in my /etc/sudoers file:
Code:
vpopmail ALL= NOPASSWD: /bin/su maint [-c]*
Now that I have that set up, I needed some way to let eSupport know when a new email is delivered to the support@??? email account. Since we are using qmail, I have the following commands in the .qmail file for the support@??? email account:
Code:
| /usr/local/bin/maildrop /usr/local/etc/mail/mailfilter
| /usr/bin/sudo /bin/su maint -c "/usr/bin/ssh our.web.server.address '/usr/bin/wget -q --delete-after http://our.web.server.address/esupport/cron/index.php?_t=parser'"
The first line of the .qmail file sends the message through our mail filters, which handle delivery of the message to the inbox. The second line executes a SSH command on behalf of the maint user on the web server that will trigger eSupport v3 to check for new messages in inboxes of the email accounts it monitors.

So to summarize:
  1. Create an account on the web and mail servers using passwordless SSH logins
  2. Configure sudo to allow the mail user access to execute a command on behalf of the account you just created
  3. Configure your mail system to deliver the message and then trigger eSupport to check for the new message

This has been working well for us because incoming messages to our mail server are immediately read into eSupport. There is no need to make eSupport check for new messages through a cron job. The message isn't exactly piped from one server to the next in this example but the web server is certainly triggered to check for new mail dynamically so the effect is the same.

Last edited by w00d; 16-07-2005 at 09:24 PM.
   
Reply With Quote
  (#6) Old
msteudel Offline
Member
 
Posts: 30
Join Date: Apr 2004
17-07-2005, 02:08 AM

Wow did you come up with this or did Kayako come up with this? I'll try it out and let you know how it goes.
   
Reply With Quote
  (#7) Old
w00d Offline
Member
 
Posts: 41
Join Date: Feb 2005
Location: Atlanta, Georgia
18-07-2005, 02:16 PM

Quote:
Originally Posted by msteudel
Wow did you come up with this or did Kayako come up with this? I'll try it out and let you know how it goes.
No I came up with this when I wanted more response out of eSupport and I didn't want to wait for the cron job to execute every few minutes to check for new messages.

Last edited by w00d; 18-07-2005 at 02:22 PM.
   
Reply With Quote
  (#8) Old
Skeptical Offline
Member
 
Posts: 48
Join Date: Jul 2005
24-07-2005, 07:21 AM

While this method works, wouldn't it be better if there were a separate set of scripts that you can install on the mail server which will auto-insert emails into the mysql database? Deskpro already does this.
   
Reply With Quote
  (#9) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,829
Join Date: May 2003
28-07-2005, 08:39 PM

Quote:
Originally Posted by Skeptical
While this method works, wouldn't it be better if there were a separate set of scripts that you can install on the mail server which will auto-insert emails into the mysql database? Deskpro already does this.
Interesting Idea and not tough to do, I will see what I can do to implement this. I would recommend using POP3 for now.

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#10) Old
dpezzo Offline
New Member
 
Posts: 1
Join Date: Sep 2005
18-03-2006, 06:17 AM

Quote:
Originally Posted by Varun [K]
Interesting Idea and not tough to do, I will see what I can do to implement this. I would recommend using POP3 for now.

Regards,

Varun Shoor

Any update on this, as in has this been added? I have the same issue with mail server separate from web server. Did not even think about that going into this, and really need to get this going with piping.

Thanks for any assistance.

Regards,
Darren
   
Reply With Quote
  (#11) Old
qpsupport Offline
New Member
 
Posts: 1
Join Date: Apr 2006
12-04-2006, 03:34 PM

I am also interested in this. Any updates?
   
Reply With Quote
Reply

Tags
piping, seperate, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How?: Piping with seperate mail server CallanM How do I? 6 22-10-2007 02:29 PM
Syncworks installation problems jenglish SyncWorks 10 29-03-2007 06:01 PM
URL to connect to my server during trial ozzee LiveResponse Desktop Application 10 22-01-2007 04:20 PM
connection problem inteltechs InstaAlert 5 27-04-2006 01:23 AM
Piping When Support App Is On A Different Server? How to? nickm E-mail Piping Issues 8 10-02-2006 07:23 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46