email to php pipe help

email to php pipe help

Posted by: dOoBiX
Posted on: 2007-05-20 00:06:00

I'm trying to forward email to a PHP script using a pipe. I want the PHP script to read the email and store the messages in a text file.

I read a bunch of forum posts here and tried following DreamHost's wiki. Here's what I got so far:

In my root directory, I have a .forward.postfix file with 1 line:

Re: email to php pipe help

Posted by: manic
Posted on: 2007-05-20 05:34:00

I would try leaving out the php stuff and just have it forward to your email address first.. once you know that works then try the script..

You might want to use "|/usr/bin/procmail -t" in your .forward.postfix instead..

chmod 600 .forward.postfix & .procmailrc

Re: email to php pipe help

Posted by: dOoBiX
Posted on: 2007-05-20 13:38:00

i followed what this guy did:
http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_programming&Number=12021&page=&view=&sb=&o=&vc=1#Post12021


now my .forward.postfix has this code:

Re: email to php pipe help

Posted by: dOoBiX
Posted on: 2007-05-21 17:32:00

I really really want to get this email to PHP pipe to work!!

I followed what this guy said:
http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_programming&Number=12021&page=&view=&sb=&o=&vc=1#Post12021

My .forward.postfix has:

Re: email to php pipe help

Posted by: dOoBiX
Posted on: 2007-05-23 21:19:00

I'm still trying to get the email to PHP pipe thing to work. :(

help anyone???

Re: email to php pipe help

Posted by: oodways
Posted on: 2007-05-29 16:09:00

I won't be able to help you directly, but it looks like:

- without the procmail file, mail gets to your inbox
- with the procmail file, the mail does not go where you want it to
- with the procmail file, it does not go to you inbox
- you defined a log file, and have a verbose setting

Is there anything in your log file?

Re: email to php pipe help

Posted by: bradww
Posted on: 2007-06-02 05:47:00

This is not the problem, yet anyway, but I could not get procmail to pipe to a php script. I had to use a cgi script. So beware, once you have procmail working, if you can't get it to pipe to your php script, you might try a cgi script


Tags: forward emailusr binmysitemyemailprocmailphp scriptphp5ld libraryroot directorylog shelllibdreamhostlibrary pathpostfixdefault homeforum postswiki