Hello,
I´m trying to start a php script when special e-mail arrives:
apache, php 4.3.2, procmail 3.22
/etc/procmailrc :
<begin>
PATH=/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/var/spool/mail # You'd better make sure it exists
DEFAULT=$MAILDIR/web1p1
LOGFILE=/var/log/procmail.log
SHELL=/bin/sh
#LOCKFILE=/var/lock/.lockmail
DROPPRIVS=yes
VERBOSE=yes
:0
* ^To(_dot_)*email(_at_)irgendwas(_dot_)info
| /usr/local/bin/php "/www/script_auto.php >> /var/log/script.log";
#tested with and without "
<end>
/var/log/procmail
<begin>
procmail: Match on "^To(_dot_)*email(_at_)irgendwas(_dot_)info"
procmail: Executing " /usr/local/bin/php "/www/script_auto.php >>
/var/log/script.log";"
procmail: Error while writing to " /usr/local/bin/php "/www/script_auto.php >>
/var/log/script.log";" procmail: Assigning "LASTFOLDER=
/usr/local/bin/php "/www/script_auto.php >> /var/log/script.log";"
<end>
Any Ideas ?
Thanks a lot.
Toph
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail