procmailrc redirect to PHP
Posted by: adam640kb
Posted on: 2005-10-10 16:22:00
Hello.. i've been trying for several days now to forward email sent to a user to a php script for "processing"... I've tried several different things... i've now compiled PHP5 (using a wiki post by dreamhost)
none the less this is my setup
in my home directory i have
.forward.postfix
it contains one line: "|/usr/bin/procmail -t"
and my .procmailrc contains:
DEFAULT=$HOME/Maildir
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
SHELL=/bin/sh
VERBOSE=yes
LOGFILE=$HOME/logfile
LD_LIBRARY_PATH=$HOME/slserver/php
#LD_LIBRARY_PATH=/lib
PHP=$HOME/php/bin/php
:0
* ^To.*(slserver@slserver.vlandco.com)
|$PHP $HOME/slmail.php
now to the problem.... procmail recognizes the email fine, but on the last few lines gives me this error:
Folder: /home/slserver/php/bin/php /home/slserver/slmail.php 996
/home/slserver/php/bin/php: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /home/slserver/php/bin/php)
If anyone can point me in the right direction it'd be greatly appriciated