Upgrade Email Piping For Kayako 3 on Ensim
Normally my sysadmins install and upgrade software on my servers but as I grew impatient last weekend for one request, I decided to upgrade our support system myself. One feature was not working, however, which was the email parsing and auto ticket generation from incoming emails. I found that it worked slightly different with version 3 compared with version 2.
Here is how to upgrade your old email piping from Kayako Support Suite version 2 to version 3:
CREATE EMAIL QUEUES (as many as you want for incoming email addresses that map to departments for tickets):
- In the Admin CP, you will click on Email Parser
- choose Insert Queue
- Enter the email address (e.g. support@yourcompany.com)
- Choose the department (e.g. Tech Support, Billing, Sales, etc.)
- Leave default rules (I did, at least) for users and auto reply
- Repeat for EACH email address you had aliases for before
EDIT EMAIL PIPE:
- ssh to your server as root and visit /home/virtual/domain.com/etc/
- verify your aliases match the email queues you created: $vi aliases
- alias should be like ( support: “| /etc/smrsh/pop3pipe.php” )
- if nothing changed, close the file (:q!)
- move to your smrsh directory: $cd smrsh/
- list the files in the directory: $ls -al
- you will see pop3pipe.php from version 2 install
- rename the file as a backup precaution: $mv pop3pipe.php pop3pipe.php.v2
- create symlink to new pipe processor for version 3
- $ln -s ../../var/www/[support]/cli/index.php pop3pipe.php
- confirm the permissions for the file include execute for all ($chmod +x pop3pipe.php)
CONFIRM PHP EXECUTABLE LOCATION:
- type: $whereis php (it should return /usr/bin/php or /usr/local/bin/php)
- open the email parser file for version 3 and confirm the she-bang line is correct
- $vi /home/virtual/domain.com/var/www/support/cli/index.php
- (default: #!/usr/local/bin/php) so I changed to #!/usr/bin/php
- write file (if you changed it) and close (:wq)
RELOAD NEWALIASES:
- you will need to log into shell as domain admin
- type: $chroot /home/virtual/domain.com (it will likely return bash shell $)
- type: $newaliases (it will display number of aliases reloaded)
- type: $exit (it will exit out of that shell and return you to root shell)
TEST IT OUT! Send an email to one of your addresses and a ticket will be generated and you should receive an auto-response (assuming you chose that option).
NOTICE: I found that the flood protection prevented me from sending subsequent tests so I spent a lot of time diagnosing to find out if you simply turn off the option to prevent auto-responses when flood prevention on, and set the timeout to 120 instead of 600, you can effectively test w/o pulling your last remaining hairs out.
Hope that helps! Enjoy.
