First of all please allow me to say that I am very
new to linux and ubuntu and postfix.
I am trying to create a mail server that will accept all mail from a bunch of fictitious email addresses but instead of postfix delivering these to a mailbox, I want the emails to be redirected to a PHP script. From there I will handle the emails in PHP and take care of the contents. I do not want anything stored in postfix mailboxes.
So far I've been able to fire up a ubuntu box, install postfix and get postfix to not throw errors when i telnet on port 25 from my windows machine and try to send it mail using the following tutorial
The problem I have is that the email is not being redirected to the php script and I can't figure out how to change that.
I've been following just about every tutorial there is out on the web but all of them have gaps in their instructions as they assume you are already an advanced linux or postfix user. The best one I've found so far is here
but I cannot su www-data as I'm getting the following error;
This account is currently not available.
Also when emails get "delivered" to postfix, I am getting the following error;
Aug 1 10:49:46 BMPOSTFIX01 pipe: fatal: pipe_command: execvp /path/to/file/postfix1.php: Permission denied