procmail

Command Execution

The program is picky about the file ownership, and waits for some input.

echo -e ':0\n| /path/to/command >/path/to/temp-file
procmail -m /path/to/temp-file