procmail
[Top] [All Lists]

Script Fails

2003-11-27 07:02:30
I have a recipe which sends bounces based on 
Return-Path: bounce(_at_)somedomain(_dot_)

: 0
* ^TO_bounce(_at_)somedomain(_dot_)com
{
 :0 b
 | /home/somedomain/cgi-bin/bounce.php
}

This script used to work (until the server crashed and we had to do a 
complete reinstall), and still works when I hard code the body into it.  It 
reads the body of the email as php://stdin:
$stdin = fopen ("php://stdin", "r");
$contents = fread ($stdin, 4000);
fclose ($stdin);

The log shows that the script is being called:
 Subject: Undelivered Mail Returned to Sender
 Folder: /home/somedomain/cgi-bin/bounce.php 
It would show an error if script fails.

Any ideas why this does not work???

TIA!




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Script Fails, Tom Most <=