Hello!
One feature I've missed from using a homegrown qmail server is the ability to pipe emails out to a script. This has come in very handy with clients who want to upload special material or attachments and have them programmatically posted to their site.
This works as well in sendmail and procmail, as far as I know, using a .forward file with a | symbol. So I can do...
| Code: |
|/var/scripts/convert_to_pdf.php
|
And the raw email message is literally piped to stdin of the php script.
I wouldn't be surprised to learn that virtualmin can already do something like this, but didn't see any obvious answers.
An intuitive place in the UI would be in the "Mail Forward Settings", in addition to "Deliver to This User Normally" and "forward to other addresses"... Just add a "Forward to script" with a field name for the script.
Best-
Post edited by: kato, at: 2008/08/01 08:23