#1  
Old 11th June 2007, 01:56
parkerj parkerj is offline
Member
 
Join Date: Feb 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email Pipe

I am using a newsletter program that allows you to subscribe by email by using a piping script. At the top of the script is "#!/usr/share/php -q". I have used the following forwards:

1. web1_ezine@server1.securetrp.com,"|/usr/bin/php -q /var/www/web1/web/12all/admin/subscribe_pipe.php"

2. web1_ezine@server1.securetrp.com,"|php -q /var/www/web1/web/12all/admin/subscribe_pipe.php"

3. web1_ezine@server1.securetrp.com,"|/var/www/web1/web/12all/admin/subscribe_pipe.php"

When I use option 1 and 2, no confirmation email is sent to the subscriber. When I use option 3, the following error returns to the subscriber:
<web1_ezine@server1.securetrp.com>: Command died with status 1:
"/var/www/web1/web/12all/admin/subscribe_pipe.php". Command output: local:
fatal: execvp /var/www/web1/web/12all/admin/subscribe_pipe.php: Permission
denied

I am not sure if I am writing the forwards right but any help is greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2007, 15:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's the output of
Code:
which php
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th June 2007, 16:11
parkerj parkerj is offline
Member
 
Join Date: Feb 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The output is "/usr/bin/php"
Reply With Quote
  #4  
Old 13th June 2007, 19:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

The first version is correct. Maybe the the .php file is not accessible by the process.

Version 3 can not work as you did not specify a php interpreter and the .php file is most likely not a executable shell script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Postfix Email Delivery Problem sedat1903 HOWTO-Related Questions 2 22nd December 2008 12:19
Problem with 'CC' & 'BCC' email not being delivered. snowfly HOWTO-Related Questions 10 20th July 2006 13:36
Multiple MySQL Queries - with Postfix-mysql, courier-authmysql, maildrop-mysql... snowfly HOWTO-Related Questions 4 7th July 2006 05:19
email forwarding locally consumes all resources rdells General 20 1st May 2006 20:43
sargeDebian GNU/Linux, kernel 2.6.8-3-686 and Debian kernel 2.6.8 386- qiu Kernel Questions 23 25th April 2006 16:53


All times are GMT +2. The time now is 10:52.


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