Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-25-2007, 01:47 AM
bhau bhau is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Default Email Piping does not work.

Hello

I have been trying to make email piping work. I have
installed osticked in a folder named results.
bhau is the subdomain added on the main domain user (dogmatio)

however this is what i get

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 |/home/dogmatio/public_html/bhau/results/api/pipe.php
generated by results@bhau.in

I have also tried

pipe to http://bhau.in/results/api/pipe.php

and it does not work!

Please advice
Reply With Quote
  #2  
Old 12-29-2007, 05:21 PM
tinos tinos is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Default

I also had problems with piping, and I wrote my own script to pipe correctly. The pipingscript (automail.pl) didn't work properly, or I couldn't get it to work.

My script, activated by a cronjob, fetches all email by pop3 and then PUT's all messages to the api/pipe.php script and deletes the messages on the mailserver. Works properly, so I think it's a worthly contribution to this wonderull product!
Attached Files
File Type: txt POPfetch.pl.txt (1.1 KB, 49 views)

Last edited by tinos; 12-30-2007 at 04:33 AM.
Reply With Quote
  #3  
Old 12-29-2007, 05:58 PM
peter peter is offline
Developer
 
Join Date: Dec 2007
Location: Alexandria, LA
Posts: 702
Default Piping issues

Possible problem include;

1) Missing quotes
"|/home/dogmatio/public_html/bhau/results/api/pipe.php"
2) Permission issues
Make pipe.php world executable.

automail.php/pl are meant for remote piping. It is important to note the difference between local and remote piping. See the wiki for details http://osticket.com/wiki/Email_Settings#Email_Piping

Tinos, your script is great but I think it is better to keep pop info and logic within the system. You could have simply cronned "/path/to/api/cron.php" to accomplish the same task without the need to discentralize the pop login info.
Reply With Quote
  #4  
Old 12-29-2007, 08:26 PM
tinos tinos is offline
Junior Member
 
Join Date: Dec 2007
Posts: 3
Default

Thanx, but I tried the api/cron.php to work with a cronjob for a day, and I didn't get it to work. I got a lot of errors witch I couldn't resolve.

Could the safe-mode, PHP4/5 problems or rights-related problems be the problem. I mean, on some servers there is something going on with the cron.php or pipe.php that maybe needs a custom solution.

Sorry for my English...
Reply With Quote
  #5  
Old 12-29-2007, 09:44 PM
red red is offline
Junior Member
 
Join Date: Dec 2007
Posts: 26
Default

Quote:
Originally Posted by peter View Post
Possible problem include;

1) Missing quotes
"|/home/dogmatio/public_html/bhau/results/api/pipe.php"
2) Permission issues
Make pipe.php world executable. [
I tried the above advice and it is still not working
When i enter the info and save it takes away the quotes, is this the issue maybe?
Reply With Quote
  #6  
Old 12-29-2007, 09:48 PM
peter peter is offline
Developer
 
Join Date: Dec 2007
Location: Alexandria, LA
Posts: 702
Default

Are you using cpanel? Any details on the system would be helpful. PM for help if need be.
Reply With Quote
  #7  
Old 12-29-2007, 11:24 PM
red red is offline
Junior Member
 
Join Date: Dec 2007
Posts: 26
Default

Quote:
Originally Posted by peter View Post
Are you using cpanel? Any details on the system would be helpful. PM for help if need be.
sorry, yes im on a linux server using cpanel
thanks
Reply With Quote
  #8  
Old 08-06-2008, 06:36 PM
crucial crucial is offline
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default

Quote:
Originally Posted by tinos View Post
I also had problems with piping, and I wrote my own script to pipe correctly. The pipingscript (automail.pl) didn't work properly, or I couldn't get it to work.

My script, activated by a cronjob, fetches all email by pop3 and then PUT's all messages to the api/pipe.php script and deletes the messages on the mailserver. Works properly, so I think it's a worthly contribution to this wonderull product!
Does anyone have this script? I can't get piping to work on my install and IMAP is complaining about a lot of things when trying to install on my production server. I'm willing to send some $$ to anyone who can either help with postfix piping or find a script like this. Please send pm or email, thanks all.
Reply With Quote
  #9  
Old 04-29-2008, 03:38 PM
macevedo macevedo is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default Email AutoReply

Good afternoon, my problem is that every time you create a new ticket application does not generate or not send mail with information about the ticket to the person who performed for the latter to pursue the same. I have already configured options panel administrator and can not find the solution ...

ayudenme please ...
Reply With Quote
  #10  
Old 04-30-2008, 06:07 AM
djtremors djtremors is offline
Member
 
Join Date: Apr 2008
Posts: 53
Default

@scientica: the problem is obvious

1. permission denied.
A. you are trying to write a session while but why, it's a script there, SHOULD BE no session. Are you calling it from a webpage????

2. PHP Notice: Undefined index: SCRIPT_NAME in /home/user/public_html/support/main.inc.php
A. Same as 1, SCRIPT_NAME is usually used for websites and not command line.

so my question is, what happens when you call the api script from shell?

ie php api/pipe.php

it should just sit there and wait for input....

I got mine working via .procmail and works a treat.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


All times are GMT -4. The time now is 06:55 AM.