Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th January 2012, 16:30
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default How to pipe email to script

Hi,

Been pulling my hair out on this one. I'm trying to integrate osticket with a wordpress site. Osticket has the ability to receive tickets via a pipe. There's some nice instructions on how to integrate this with cpanel.

Anyway, tried using ispconfig 3, in custom rules I had set up:

to "|/var/www/.../.../pipe.php"

result:
Command output: /usr/bin/maildrop: Unable to open mailbox. )

Have tried without quotes, with php -f etc but no joy.

Looks like maildrop is thinking this is a mailbox and not piping.

Any tips on getting this to work?
Reply With Quote
Sponsored Links
  #2  
Old 13th January 2012, 16:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,167 Times in 4,051 Posts
Default

I guess what maildrop tries to say you is that your php script can not be accessed by the user "vmail", under which the mailsystem is running.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th January 2012, 16:46
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

Postfix mail, everything was setup as per the isp guide
Reply With Quote
  #4  
Old 13th January 2012, 17:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,167 Times in 4,051 Posts
Default

The perfect setup guide installs a secure enviroemnt, so that no other users then the web user can access a website. If I assume that your php script is inside a website directory, then the vmail user can not access it.

What you can try is that you add the vmail user to the group of the website where the php script is located.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 13th January 2012, 18:38
ichpen ichpen is offline
Junior Member
 
Join Date: Dec 2011
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Good suggestion, added user vmail to the client group but same error:


Jan 13 12:32:57 server1 postfix/pipe[488]: 83DA215A1F72: to=<support@mydomain.co>, relay=maildrop, delay=0.13, delays=0.06/0/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )

Confused.

UPDATE: one step closer but still an error in there.


Jan 13 12:40:55 server1 postfix/smtp[720]: 04C5015A1F72: to=<support@mydomain.co>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.8, delays=0.25/0.01/0/4.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B3BB415A1F8B)
Jan 13 12:40:55 server1 postfix/qmgr[10275]: 04C5015A1F72: removed
Jan 13 12:40:55 server1 postfix/sendmail[730]: fatal: vmail(5000): No recipient addresses found in message header
Jan 13 12:40:55 server1 postfix/pipe[707]: B3BB415A1F8B: to=<support@mydomain.co>, relay=maildrop, delay=0.1, delays=0.04/0/0/0.06, dsn=2.0.0, status=sent (delivered via maildrop service)


The actual rule is:
to "|/var/www/clients/client4/web4/web/wp-content/plugins/zingiri-tickets/osticket/upload/api/pipe.php"

I had omitted the pipe character earlier.

Last edited by ichpen; 13th January 2012 at 18:47.
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
piping email to a script rboschin Tips/Tricks/Mods 8 28th October 2012 17:59
Forward email to a script with sieve themark Tips/Tricks/Mods 2 8th November 2011 16:03
Email forwarding doesn't work... thorjm General 5 13th January 2011 18:07
Postfix Quota Notification Email Script asyadiqin Installation/Configuration 14 23rd July 2010 13:35
How to exec a php script when receives an email elcore2010 Tips/Tricks/Mods 14 17th February 2010 22:05


All times are GMT +2. The time now is 15:13.


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