hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Exim and PHP: The battle goes on
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Exim and PHP: The battle goes on

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2002, 01:42 AM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042

Exim and PHP: The battle goes on


Okay... since at this point I've spent 11 hours trying to figure this crap out I'll ask you guys.

Here's the deal: I want Exim to pipe an email address to a php program. Should be as simple as 123 right? Umm.. no...

I just sent a test email from the server to helpdesk@somedomain.com and this is the error message that was returned:

From: Mail Delivery System
To: root@somedomain.com
Subject: Mail delivery failed: returning message to sender
---------------------------------------------------------------------------------------
This message was created automatically by mail delivery software (Exim).

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/something/public_html/helpdesk/email.php
generated by helpdesk@somedomain.com
Child process of virtual_address_pipe transport returned 69 (could mean service or program
unavailable) from command:
/home/something/public_html/helpdesk/email.php

I've checked permissions 800 million times (since generally returning 69 means a permissions problem with the command, in this case email.php).

So anyways 11 hours later still nothing. Here's my valias entry for the domain:

helpdesk@somedomain.com: |/home/something/public_html/helpdesk/email.php

Any suggestions?

Reply With Quote


Sponsored Links
  #2  
Old 09-21-2002, 04:03 AM
priyadi priyadi is offline
Registered User
 
Join Date: Apr 2001
Location: Depok, Indonesia
Posts: 986
If you haven't done so, try adding #!/usr/bin/php (or whatever location of your php interpreter) on top of your email.php, and chmod it +x.

If you don't have php interpreter on your system, you need to build one as CGI mode (not apache module).

Reply With Quote
  #3  
Old 09-21-2002, 04:25 AM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
So basically I'm screwed unless PHP is installed as a CGI binary (since it is currently installed as an Apache Mod)?

Reply With Quote
Sponsored Links
  #4  
Old 09-21-2002, 04:28 AM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
Oops... or as long as I run it as a CGI binary... that's cool, I didn't even think about the permissions problem on that end. Thanks for the tip

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
  #5  
Old 09-21-2002, 05:16 AM
Ahmad Ahmad is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Kuwait
Posts: 679
Yeah, you can have both CGI and Apache versions on the system.

__________________
Ahmad Alhashemi
PHP, Apache, C, Python, Perl, SQL
18 related BrainBench certificates

Reply With Quote
  #6  
Old 09-21-2002, 01:35 PM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
Welp I did that, CGI and mod_php and now... a new error .

This message was created automatically by mail delivery software (Exim).

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/someplace/public_html/helpdesk/cgi-bin/email.php
generated by helpdesk@somewhere.com

The following text was generated during the delivery attempt:

------ pipe to |/home/someplace/public_html/helpdesk/cgi-bin/email.php
generated by helpdesk@somewhere.com ------

X-Powered-By: PHP/4.2.2
Content-type: text/html

Now I'm really confused... never gotten THIS one before.

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
  #7  
Old 09-21-2002, 04:39 PM
cyansmoker cyansmoker is offline
Web Hosting Master
 
Join Date: Oct 2001
Location: California, USA
Posts: 1,315
Well I don't know Exim but the header that you see here may be what makes it so angry. Instead of /usr/bin/php, use /usr/bin/php -q

__________________
http://www.voilaweb.com - the Social Internet Toolbox.

Reply With Quote
  #8  
Old 09-21-2002, 04:45 PM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
tried that also...

Found in exim_mainlog:
Not as a CGI binary
2002-09-21 00:12:04 17seQu-000223-00 ** |/home/compcity/public_html/helpdesk/email.php D=virtual_aliases_nostar T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 69 (could mean service or program unavailable) from command: /home/compcity/public_html/helpdesk/email.php

Is a CGI binary, and no message returned!
2002-09-21 07:10:59 17skyJ-0005jo-00 ** |/home/compcity/public_html/helpdesk/cgi-bin/email.php D=virtual_aliases_nostar T=virtual_address_pipe: return message generated

Nothing found in exim_rejectlog... pretty frustrating.

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
  #9  
Old 09-21-2002, 05:52 PM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
Well I just don't know. Everyone I've talked to is pretty much saying they don't have a clue what the problem is. :p...

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
  #10  
Old 09-22-2002, 02:51 AM
priyadi priyadi is offline
Registered User
 
Join Date: Apr 2001
Location: Depok, Indonesia
Posts: 986
Try executing /home/compcity/public_html/helpdesk/email.php directly from shell, see if it works.

Reply With Quote
  #11  
Old 09-22-2002, 02:08 PM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
Like a charm...

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
  #12  
Old 09-22-2002, 05:23 PM
priyadi priyadi is offline
Registered User
 
Join Date: Apr 2001
Location: Depok, Indonesia
Posts: 986
Probably php returned wrong exit code. Try adding exit(0) on the bottom of your php script. Other than that I don't know, maybe the problem is inside the script.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Spamhaus Blames Cyberbunker for the Largest Public DDoS Attack Ever Web Hosting News 2013-03-27 14:11:35
A Look at the New WHM Interface in Version 11.34 of the cPanel Hosting Control Panel Web Hosting News 2012-11-12 12:57:03
Data Center Catharsis: Developers vs. Admins Blog 2012-05-10 11:47:40
Web Hosting Control Panel cPanel and WHM Version 11.32 Adds Features, Fixes Web Hosting News 2012-04-08 11:51:35
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?