I read this article on how to setup procmail and everything seams ok
from a setup stand point (So I think)
Ok so so I have 2 problems here.
1 I can't get procmail to execute a shell or php script. I just get an error in the log.
This is the error I get in the log when it does not work:
procmail: Executing "php,/home/mydir/php_exec_test.php"
php: php: No such file or directory
or this when I try a shell script
procmail: Unable to treat as directory
procmail: Skipped "/home/mydir/php_exec_test.sh"
This is what is in my filter .rc file: (Note I have tired putting the "|" pipe before the command as well in all the below examples)
This works! (This works. Just moves the mail to a folder called "test")
When I try this it does not work
/usr/local/bin/php -f /home/mydir/php_exec_test.php
php -f /home/mydir/php_exec_test.php
php -g /home/mydir/php_exec_test.php
Or even calling a shell script that calls the php script
2 I want to process a differnt mailbox and can't seam to find out how
I have tried this for my ".forward.postfix" file
"|IFS=' ' && exec /usr/bin/procmail -t || exit 75 #OTHER_MAIL_BOX_HERE"
The main system mailbox is processed but my other is ignored.
I bet both of these are a very simple things and I am missing something.