Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th January 2010, 23:53
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default Can I configure email piping through ISPConfig3

I have been testing osTicket as a Support Ticket system. It allows for automated support ticket creation when users send emails to a specified email address.

I already have the mailbox created in ISPConfig3. Some examples are supplied in the osTicket WIKI.

Is there a way to do the piping through the ISPConfig web GUI or do I need to get into Postfix master.cf file?
Reply With Quote
Sponsored Links
  #2  
Old 18th January 2010, 09:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
Default

You can pipe the message to osTicket by adding a pipe in the custom rules field of the mailbox. The rules have to be in maildrop syntax. I guess something like:

to "|/path/to/api/pipe.php"

should work.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
edge (27th January 2010)
  #3  
Old 27th January 2010, 05:36
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 126
Thanks: 2
Thanked 5 Times in 5 Posts
Default

did this work for you, I too am trying this.

I get this when I test it, and not sure why. I made sure pipe.php is chmod 777 and still errors out????
Quote:
The mail system

<support@mydomain.com>: Command died with status 126: "/usr/bin/maildrop".
Command output: ERR: authdaemon: s_connect() failed: Permission denied sh:
/var/www/mydomain.com/web/helpdesk/api/pipe.php: Permission denied

Last edited by pebkac; 27th January 2010 at 06:50.
Reply With Quote
  #4  
Old 27th January 2010, 17:35
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 126
Thanks: 2
Thanked 5 Times in 5 Posts
Default

I also made sure the dir leading to pipe.php are permission 777, and still nothing,

Code:
The mail system

<support@mydomain.com>: Command died with status 126: "/usr/bin/maildrop".
   Command output: ERR: authdaemon: s_connect() failed: Permission denied sh:
   /var/www/mydomain.com/web/helpdesk/api/pipe.php: Permission denied

Final-Recipient: rfc822; support@mydomain.com
Original-Recipient: rfc822;support@mydomain.com
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; ERR: authdaemon: s_connect() failed: Permission denied
   sh: /var/www/mydomain.com/web/helpdesk/api/pipe.php: Permission denied
Code:
drwxrwxrwx 10 web1 client1       4096 2010-01-26 20:32 helpdesk
drwxrwxrwx 2 web1 client1 4096 2010-01-26 21:34 api
root@pebkac:/var/www/mydomain.com/web/helpdesk/api# ls -l
total 28
-rwxrwxrwx 1 web1 client1 3023 2010-01-26 20:23 api.inc.php
-rwxrwxrwx 1 web1 client1  716 2010-01-26 20:23 cron.php
-rwxrwxrwx 1 web1 client1   34 2010-01-26 20:23 index.php
-rwxrwxrwx 1 web1 client1 4971 2010-01-26 21:34 pipe.php
Reply With Quote
  #5  
Old 27th January 2010, 19:55
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,010
Thanks: 254
Thanked 134 Times in 120 Posts
Default

Quote:
Originally Posted by pebkac View Post
I also made sure the dir leading to pipe.php are permission 777, and still nothing,
What exactly did you add in the "custom rules field of the mailbox"?
Reply With Quote
  #6  
Old 27th January 2010, 20:11
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 126
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Code:
to "|/var/www/mydomain.com/web/helpdesk/api/pipe.php"
Reply With Quote
The Following User Says Thank You to pebkac For This Useful Post:
edge (27th January 2010)
  #7  
Old 27th January 2010, 22:38
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,010
Thanks: 254
Thanked 134 Times in 120 Posts
Default

Thank you for the info.
For me it's working great.

I've chmoded my pipe.php to 755.
It's owned by (in my case) web81

As test I added a small "email me when script is hit" option, and after sending the email to the "custom ruled mailbox", I got a reply from my "email me when script is hit" .

Last edited by edge; 27th January 2010 at 22:41.
Reply With Quote
  #8  
Old 27th January 2010, 23:00
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 126
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by edge View Post
Thank you for the info.
For me it's working great.

I've chmoded my pipe.php to 755.
It's owned by (in my case) web81

As test I added a small "email me when script is hit" option, and after sending the email to the "custom ruled mailbox", I got a reply from my "email me when script is hit" .
You're lucky I guess. What server it is it running on. I cannot figure this out for the life of me.
Reply With Quote
  #9  
Old 27th January 2010, 23:44
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,010
Thanks: 254
Thanked 134 Times in 120 Posts
Default

Debian Lenny with ISPconfig3

Not sure if it makes any difference, but my "pipe.php" script starts with:

Code:
#!/usr/bin/php 
<?php 
....
rest of code....
....
?>
Reply With Quote
  #10  
Old 28th January 2010, 00:58
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 126
Thanks: 2
Thanked 5 Times in 5 Posts
 
Default

Quote:
Originally Posted by edge View Post
Debian Lenny with ISPconfig3

Not sure if it makes any difference, but my "pipe.php" script starts with:

Code:
#!/usr/bin/php 
<?php 
....
rest of code....
....
?>
Same here.

UPDATE: Mine actually looks like this:
#!/usr/bin/php -q

I iwll try it without the -q and see what happens.

Last edited by pebkac; 28th January 2010 at 01:03.
Reply With Quote
Reply

Bookmarks

Thread Tools
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
email issue for second domain configured ISPConfig3 mscomputing Installation/Configuration 1 10th November 2009 10:09
ISPConfig3 Quota System for Email Accounts atjensen11 Installation/Configuration 2 10th August 2009 12:28
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
please help to configure postfix to download mail from a catch all email account mmi1982 Server Operation 2 28th July 2008 05:02
how to configure postfix to send email out for a hosted domain nox171 Server Operation 24 13th July 2007 11:48


All times are GMT +2. The time now is 07:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.