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
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
Piping vs POP3 - 07-06-2008, 12:08 AM

Hello Everyone,

I'm stuck and don't know if I should use piping or POP3?

I'm not grasping this whole piping thing so I'm not sure how to set everything up.

My server is WinXP/Apache. I use vhosts.

The same box also runs my e-mail server which has the same domain name as one of my sites.

Should I still install cygwin and set up piping or should I use POP3?

I don't know anything (obviously) about Unix/Linux. Does exim act as an email server? Since I already have an email server set up, will piping work?

Someone please enlighten me.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
07-06-2008, 08:19 AM

If you are on a Windows server I suggest you use POP3



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
07-06-2008, 09:27 AM

Generally, piping is best if you receive a low volume of emails as it only fires the system when a mail comes on. If you receive a high volume, your server could be getting hammered by piping every few seconds and this is where POP / IMAP fetching is better as it means it fetches a batch once every 10 minutes.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#4) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 01:43 PM

Quote:
Originally Posted by supportskins View Post
If you are on a Windows server I suggest you use POP3
Quote:
Originally Posted by craigbrass View Post
Generally, piping is best if you receive a low volume of emails as it only fires the system when a mail comes on. If you receive a high volume, your server could be getting hammered by piping every few seconds and this is where POP / IMAP fetching is better as it means it fetches a batch once every 10 minutes.
Thank you

I tried POP, IMAP and piping. I can't get any of them to work. I installed cygwin and wget. Since I decided to go with POP/IMAP, I reimaged the server to the time before I installed cygwin. Now I have wget set up and Kayako to use POP. I'm stumped! I cannot get it to work and I don't know what to look for. When a client replies to a ticket via email, it is not picked up by Kayako.

I also took a look in my email server log and find replies from the staff are going through with the domain, but not the mailbox. Below is an excerpt from the email log. I changed the domain to "mysite" and the name of the computer/server to "computerName" since this post is viewable by anyone. Also, customerservice@mysite.com is what I have specified in my php.ini as the "send_mail from:" address.

Code:
 
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: Connection from remote.
2008-06-07 02:33:28 <TRACE-3>: SmtpReceiver: 000a: Message for node '' from address '127.0.0.1', result: 1
2008-06-07 02:33:28 <TRACE-3>: SmtpReceiver: 000a: Node not on Blocked IP list
2008-06-07 02:33:28 <TRACE-3>: SmtpReceiver: 000a: Address in authentication zone 'Default'.
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: Greeting sent.
2008-06-07 02:33:28 <WARNG-1>: SmtpReceiver: 000a: Node name of 'mysite.com' is different than reported name of 'computerName'. Assuming found name over reported name.
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: HELO mysite.com
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: MAIL FROM: <customerservice@mysite.com>
2008-06-07 02:33:28 <TRACE-3>: SmtpReceiver: 000a: Message for node 'mysite.com' from address '127.0.0.1', result: 1
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: RCPT TO: <account1@mysite.com>
2008-06-07 02:33:28 <TRACE-3>: SmtpReceiver: 000a: Message for node '' from address '127.0.0.1', result: 1
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: RCPT TO: <@mysite.com>
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: Mailbox not available.
2008-06-07 02:33:28 <TRACE-2>: SmtpReceiver: 000a: QUIT
If I use the Kayako Staff panel to reply to a ticket and put an address in the "Cc" field, the message addressed to the "Cc" goes through.

I'm not sure how to check if wget is working properly. I know the scheduled task for wget is working because I see the black command box flash on the server's screen at regular intervals.

Last edited by jeffshead; 07-06-2008 at 02:06 PM.
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
07-06-2008, 03:08 PM

Try running the URL
Code:
http://www.yourdomain.com/support/cron/index.php?_t=parser
in the browser and check what message it displays.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#6) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 03:13 PM

Quote:
Originally Posted by supportskins View Post
Try running the URL
Code:
http://www.yourdomain.com/support/cron/index.php?_t=parser
in the browser and check what message it displays.
Thanks.

I get the following:

Total Messages in Inbox: 0
0 Total Messages
Rejected Messages: 0
Accepted Messages: 0
   
Reply With Quote
  (#7) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 03:36 PM

Quote:
Originally Posted by jeffshead View Post
Thanks.

I get the following:

Total Messages in Inbox: 0
0 Total Messages
Rejected Messages: 0
Accepted Messages: 0
I fixed one part of the problem. Dummy Me, forgot to change the support@mysite.com POP3 email account in Outlook so it leaves a copy of the message on the server.

Now if I go to URL http://www.mysite.com/support/cron/index.php?_t=parser it does add the email to the ticket, but only when I manually visit the URL above.

Where do I begin troubleshooting for the scheduled task and/or wget?
   
Reply With Quote
  (#8) Old
Dewak Offline
Member
 
Dewak's Avatar
 
Posts: 148
Join Date: Feb 2008
07-06-2008, 04:33 PM

Hi jeffshead,

You are almost done, I recommend you to download the Kayako manual (Redirecting) and take a look at page 83. There you will see a detailed step by step instructions to create to create the scheduled task


Andres Berdugo
Email & MSN: andres[at]dewak.com
Skype: andres.dewak
Dewak: Kayako Development, Consultancy and Support
http://www.dewak.com
   
Reply With Quote
  (#9) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 04:35 PM

Quote:
Originally Posted by Dewak View Post
Hi jeffshead,

You are almost done, I recommend you to download the Kayako manual (Redirecting) and take a look at page 83. There you will see a detailed step by step instructions to create to create the scheduled task
Thanks

Already did that. I've also been testing the tasks in this thread:

wget Dos Window Popup Problem

Still no luck
   
Reply With Quote
  (#10) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 04:54 PM

Quote:
Originally Posted by jeffshead View Post
Thanks

Already did that. I've also been testing the tasks in this thread:

wget Dos Window Popup Problem

Still no luck
OK, I got it to work, but I get a DOS window flashing everytime the task is run. Is there a way to stop the DOS window from appearing?

This is what I have in my scheduled task:

Run: C:\wget\wget.exe -O nul -a wgetLog "http://www.mysite.com/support/cron/index.php?_t=parser"

Start in: C:\wget

p.s. It does not work without adding "?_t=parser" to the end of the run statement. This is not mentioned in the manual.

Last edited by jeffshead; 07-06-2008 at 05:04 PM.
   
Reply With Quote
  (#11) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
07-06-2008, 08:24 PM

What is the message the task scheduler records after it runs wget - 0x0 or 0x1



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#12) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 08:28 PM

Quote:
Originally Posted by supportskins View Post
What is the message the task scheduler records after it runs wget - 0x0 or 0x1
It is 0x0.
   
Reply With Quote
  (#13) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
07-06-2008, 08:44 PM

It suggest the execution is alright yet mails are not retrieved in the software?



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#14) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 08:58 PM

Quote:
Originally Posted by supportskins View Post
It suggest the execution is alright yet mails are not retrieved in the software?
Quote:
Originally Posted by jeffshead View Post
OK, I got it to work, but I get a DOS window flashing everytime the task is run. Is there a way to stop the DOS window from appearing?
The emails are retrieved by the software now.

I still have two concerns:

1. The DOS window flashes on the server's screen everytime the scheduled task is run. Is there a way to stop this?

2. I was hoping to use a local path (c:\public\vhosts\mysite.com\support\cron\index.ph p?_t=parseror) or a SSL URL (https://www.mysite.com/support/cron/index.php?_t=parser) for security. Is this possible or is there no security risk?

I tried many different scenarios and posted them here:
wget Dos Window Popup Problem

Is it possible to use a local path, SSL or at least get rid of the DOS window issue?


"https://www.mysite.com/support/cron/index.php?_t=parser" does work when accessing via a web browser. Wget does not like it even when using "--no-check-certificate".

Last edited by jeffshead; 07-06-2008 at 09:13 PM.
   
Reply With Quote
  (#15) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 634
Join Date: Dec 2007
Location: Idaho
Post Details - 13-06-2008, 12:16 AM

Quote:
1. The DOS window flashes on the server's screen everytime the scheduled task is run. Is there a way to stop this?
Yes. The mechanism is different for different versions of windows. This works for XP and Vista:
Background Batch File | Robert Accettura’s Fun With Wordage

For windows 2k3, uncheck the box that says "Allow service to interact with desktop".

For other versions of windows, google background scheduled-task.





Quote:
Is this possible or is there no security risk?
There is no security risk. You can, actually, load it by https, but there's really no point. The URL for the queue trigger is fixed, well known and public. All an attacker could do by scrubbing your queue URL is find out how many email boxes you were scanning (not what their addresses are) as well as how many of them were failing.

For failing mailboxes, the mailserver's canonical address is exposed, but still not the account's address.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
piping, pop3

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
Piping not working on CentOS 4 justincataldo E-mail Piping Issues 3 10-01-2008 08:54 AM
Set Up POP3 or Piping - Hosting on NetworkSolutions?? olimits7 E-mail Piping Issues 1 15-09-2006 09:07 AM
Pop3 fetching working in a strange way Deepak SupportSuite, eSupport and LiveResponse 0 01-05-2006 05:19 PM
2 Questions on V3 - POP3 Piping & Email Notifications fmckinnon E-mail Piping Issues 4 09-01-2006 11:25 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