Email Piping (to PHP app)


I have a client who is using “Webmin” and “Postfix”.

He wants to “pipe” an email to a PHP script.

How does one go about doing this?

  • Peter

Well, in Virtualmin, you’d go into Edit Mail Aliases, choose an alias, click the “Advanced” tab, and choose “Feed to Program” as the alias destination.

As far as doing that in Webmin goes? Honestly, I’m not certain where you’d accomplish that :slight_smile: However, the goal would be to add an alias that looks like “|/path/to/script.php”.



Thanks for your suggestion, I did the next best thing.

I convinced the client to allow me to handle the domain for him on my server which runs Virtualmin, and was able to setup piping with ease via a “.procmail” file in his home directory :wink: