Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
kenja Offline
New Member
 
Posts: 6
Join Date: Nov 2007
Email piping problem on Pair.com - 06-11-2007, 03:56 PM

Hi. I am trying to set up and evaluate Kayako support on my pair.com dedicated server. I am having trouble getting qmail to behave itself through the pair control panel. Pair.com uses an "Account Control Center" panel to adjust email configuration. ACC automatically creates the .qmail- files.

I am trying to configure it so that emails going to "support@mydomain.com" are piped into

/usr/www/users/username/mydomain/support/cli/index.php

The ACC allows you to add rules to mailboxes. I added a "filter" rule which is how you send a command to a script. When I enter the commands detailed in your documentation:

"|/usr/www/users/username/mydomain/support/cli/index.php" or
"| php -q /usr/www/users/username/mydomain/support/cli/index.php" or
|/usr/www/users/username/muydomain/support/cli/index.php

the system automatically prefixes the command with /usr/home/username. None of the three commands works.


Here's what I've done so far:
1) I set up a mailbox for support@mydomain.com in the ACC panel. I then added a filter recipe using the command detailed in the attached pdf. Upon inspecting the .qmail-mydomain:com-support file in /var/rules/username/, it appears that it the control panel is modifying the command I entered and it does not work. Here is the line that is generated by the ACC.

Code:
# FILTER support@mydomain.com /usr/home/username/| php -q /usr/www/users/username/mydomain/support/cli/index.php
|/var/qmail/bin/preline /usr/home/username/| php -q /usr/www/users/username/mydomain/support/cli/index.php
# MAILBOX mydomain.com@support@support
|/var/qmail/bin/preline -f /var/qmail/bin/bouncesaying "Message rejected by mailbox due to space constraints." /usr/local/libexec/virtual.local -f ${SENDER:-${USER$
I can't modify the file because it is owned by the root and updated by the ACC. See the following pair article on setting up qmail:
http://www.pair.com/support/knowledg...ing_qmail.html


2) I deleted the mailbox for support@mydomain.com, verified the profile was deleted from /var/rules/whiteman, and created a .qmail-mydomain:com-support file in my home directory. According to your knowledge base article, this should work. I created the file with the exact command syntax detailed in the attached pdf.

Neither approach is working. By the way, I set the /cli folder permissions to 777. And I do have a mail queue defined for the pipe.

Thanks,
Kenja
   
Reply With Quote
  (#2) Old
kenja Offline
New Member
 
Posts: 6
Join Date: Nov 2007
07-11-2007, 12:41 AM

Okay. I figured it out on my own.

You need to make sure there is no mailbox for the email address you plan to use. Do this in the ACC control panel. If there is a box for the address you want to pipe, delete that box. You can't add the pipe directly from the ACC control panel. Once you verify that there is no mailbox, there will be no .qmail file for the piped address in the default folder (/var/rules/username). This will force qmail to check your home folder for the file when emails with that address come in.

Create a file in your ~/ directory called .qmail-mydomain:com-support (substitute sales, support, etc, depending on the email name you want to catch).

The file should contain the following:

|/usr/www/users/yourusername/cgi-bin/php4.cgi -q /usr/www/users/yourusername/yourdomainname/support/cli/index.php

Save the file and change the permission on that file to 444 (very important since it will error out silently if you don't).

You have to run the CGI version of php (in the syntax above) in order for it to run zend optimizer. The default PHP installation does not have zend optimizer enabled.

I hope this helps someone else solve the problem, too.
   
Reply With Quote
Reply

Tags
paircom, piping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Email piping on Windows v0lc4n0 E-mail Piping Issues 17 19-09-2008 06:44 AM
Email Piping Partailly Works - Qmail brooky E-mail Piping Issues 2 04-08-2006 01:00 PM
Piping problem (please help) Indirect E-mail Piping Issues 27 10-07-2006 01:41 AM
Email Piping on separate server or just no email piping at all Skeptical SupportSuite, eSupport and LiveResponse 3 18-05-2006 01:56 AM
Solving problem: eSupport sends emails to staff addres instead of Email Queue address tonila Developers & Code 0 16-05-2006 12:03 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