Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: splunk on February 28, 2005, 08:51:00 PM

Title: Forward email to a script?
Post by: splunk on February 28, 2005, 08:51:00 PM
I'm trying to find a way to have incoming email to an account forwarded to a script, with SME 6.01.  I installed the dungog files that were supposed to create a tab in the server-manager to setup procmail, to no avail.  If someone could provide some info, cheers!
Title: Forward email to a script?
Post by: splunk on March 02, 2005, 03:45:04 AM
Well, I found and edited procmail, and tried it.  I set up a rule to take email and forward it to

|PHP /path/to/script

Then when looking at the logs, it would say executing, but it would try /PHP,/path/to/script.  

Just trying to get it setup so that I can post pictures and stuff to my site from my phone without having to run a cron.
Title: Forward email to a script?
Post by: splunk on March 04, 2005, 04:59:23 PM
One last desperate attempt to get some help on this.  Hopefully someone who has done this will see my message.   ;-)
Title: Forward email to a script?
Post by: Curly on March 04, 2005, 07:14:08 PM
I've had this once, but i haven't got this .promailrc any more.

Something like:
Code: [Select]

    :0 hbfW
    | /home/user/bin/script


I think that you at least should change PHP tot the full path to the binary for php (/usr/bin/php) and make it lowercase.

[edit: typo]