I'm using qmail, but same thought. Now what is qmail going to see as far as information pertaining to the script path? Won't it just see it as the web user injecting a mail message? At that point I think the script path may already be lost.
I thought about modifying mail() in the source and recompiling, but I want to avoid that if it's possible.