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
dtrader Offline
New Member
 
Posts: 4
Join Date: Nov 2007
set-up piping in directadmin - pls help - 06-11-2007, 08:46 AM

I have been reading through the posts and trying to get my email pipe working but I seem to be very unsuccessful. I am on a unix server using directadmin. There have been very few posts on setting-up pipe in directadmin.

I'm a newbie at this so excuse any errors I make....or if I say anything stupid. I'm just trying to understand and make email pipe work. I tried using POP3 but I had to recompile (*NIX Users should recompile the PHP with the --with-imap flag) so I decided to use pipe instead.


These are the steps that I've followed so far:

1. chmod cli/index.php to 755
(i also tried 777)

2. create an email queue: address - support@mydomain.com
queue type - tickets
fetch type - pipe
and further down: department - general
ticket status - open
priority - medium

3. in directadmin, on forwarders: forwarder name - support@mydomain.com
destination email - "|/domains/mydomain.com/public_html/cli/index.php"

(my cli/index.php contains this #!/usr/local/bin/php -q so i also tried using "|/usr/local/bin/php /domains/mydomain.com/public_html/cli/index.php" )

4. when i send an email to support@mydomain.com (when using "|/domains/mydomain.com/public_html/cli/index.php") the email bounces back with this:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es)
failed:

pipe to |/domains/mydomain.com/public_html/cli/index.php
generated by support@mydomain.com
local delivery failed

5. when i send an email to support@mydomain.com (when using "|/usr/local/bin/php /domains/mydomain.com/public_html/cli/index.php") the email bounces back with this:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es)
failed:

pipe to |/usr/local/bin/php
/domains/mydomain.com/public_html/cli/index.php
generated by support@mydomain.com
local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/usr/local/bin/php
/domains/mydomain.com/public_html/cli/index.php
generated by support@mydomain.com ------

Could not open input file:
/domains/mydomain.com/public_html/cli/index.php

What am i missing out? Do i have to configure something else?

I read somewhere about changing something in the cli/index.php file - do i have to change #!/usr/local/bin/php -q to some other location? my php.ini file is in /usr/local/lib (tho i tried this already and i still didnt get any tickets).

Please help and guide me, anyone?
   
Reply With Quote
  (#2) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
06-11-2007, 10:30 AM

Quote:
Originally Posted by dtrader View Post
I have been reading through the posts and trying to get my email pipe working but I seem to be very unsuccessful. I am on a unix server using directadmin. There have been very few posts on setting-up pipe in directadmin.

I'm a newbie at this so excuse any errors I make....or if I say anything stupid. I'm just trying to understand and make email pipe work. I tried using POP3 but I had to recompile (*NIX Users should recompile the PHP with the --with-imap flag) so I decided to use pipe instead.
I believe you need PHP-IMAP no matter whether you are piping or using POP. I am also on a DirectAdmin system, and discovered that my hosting provider did not (for some strange reason) have PHP-IMAP. You need to get that set up first. In the meantime, you're stuck with the web system.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#3) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
06-11-2007, 11:55 AM

I do not believe you need PHP compiled with IMAP if you are setting email piping. You need to make sure:

1) File permissions are set correctly
2) Piping path is set correctly
3) PHP path is set correctly in /cli/index.php - you can check this by SSHing to your server and running the command:

whereis php

HTH



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
  (#4) Old
dtrader Offline
New Member
 
Posts: 4
Join Date: Nov 2007
07-11-2007, 12:55 PM

IT WORKED!!!!! I was finally able to receive a ticket after sending an email to support@mydomain.com. I didn't have to compile PHP with IMAP.

I had my piping path wrong. THAT WAS ALL!!!! All the grief my boss gave me and it was that simple.

Thank you!!!!!!
   
Reply With Quote
  (#5) Old
bear Offline
Community Moderator
 
Posts: 701
Join Date: Jan 2005
07-11-2007, 01:56 PM

Congratulations.
For future reference, the error mentioned that.
Code:
Could not open input file:
/domains/mydomain.com/public_html/cli/index.php
   
Reply With Quote
  (#6) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
09-11-2007, 11:59 AM

Good to know the issue is resolved



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
Reply

Tags
directadmin, piping, pls, setup

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
Directadmin email piping jtabish E-mail Piping Issues 4 01-11-2007 10:23 AM
Another cpanel piping issue - pls HELP! sebastian24 E-mail Piping Issues 2 04-05-2007 03:05 PM
Sorry to say, but yet another piping issue... thernes E-mail Piping Issues 21 20-03-2007 08:38 AM
Set Up POP3 or Piping - Hosting on NetworkSolutions?? olimits7 E-mail Piping Issues 1 15-09-2006 09:07 AM
Swift CLI problem joshopkins SupportSuite, eSupport and LiveResponse 2 02-09-2006 07:12 AM



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 47