troubleshooting Question

pipe email to php script postfix

Avatar of Member_2_6313995
Member_2_6313995 asked on
Linux DistributionsProgrammingEmail Servers
2 Comments1 Solution866 ViewsLast Modified:
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[2082]: fatal: pipe_command: execvp /path/to/file/postfix1.php: Permission denied

Please help!
Bernard Savonet

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros