Using .forward file to pipe email to PHP5 script

Hi,

Right now, a message filter is forwarding all emails from discussion@website.org to the Shell user discussionlistmanager@maple.dreamhost.com. This works (the mails show up in Maildir/new), but I’d like to have the emails be piped to a PHP script. The goal of this is to have that PHP script forward the script to certain emails listed in a database.

Judging by Google, what looks like the right way to do this is with a .forward file, but I can’t seem to get the syntax for that working. If the email is to be sent to discussionlistmanager/scripts/one.php, what
would the contents of the .forward file be?

Thanks!

Check here: http://wiki.dreamhost.com/Email_to_Script#Example_Code

Oh hey, thanks! Worked like a charm.

Your link no longer works. Can you please update?

Did you find a solution? Can you post how did you make it work? I’ve been struggling with the dreamhost configuration/CP for a few days now. Nothing works. Moreover, their tech support is not very helpful either.