Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

piping email to a php script

Status
Not open for further replies.

linuxMaestro

Instructor
Jan 12, 2004
183
US
I get an error when piping email to a php script
I setup the forwarder as
|'/home2/autosec/public_html/getmail.php'

But get the error:
R=virtual_aliases_nostar T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home2/autosec/public_html/getmail.php

i tried chmod 755 getmail.php
and
i added this lin\e to the top
#!/usr/local/bin/php

The email send is bounced back, what Im I doing wrong?
 
That looks more like a message from your mail transport agent and not PHP. What mailer are you using? It looks like it might be postfix.
 
Hang on, I think I see what you're doing. You've used your .forward to pipe your incoming mail to your script? Get rid of the quotes.
 
Tried it, no luck:

This message was created automatically by mail delivery software.

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 |/home2/autosec/public_html/getmail.php
local delivery failed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top