Using .forward file to pipe email to PHP5 script


#1

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!


#2

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


#3

Oh hey, thanks! Worked like a charm.