Skip to content

Comment on Ask YC: How do I send incoming email to a PHP script?

Comments

procmail will do the job. From the homepage:

"Procmail can be used to [...] preprocess your mail, start any programs upon mail arrival [...]."

http://www.procmail.org/

We also use procmail for this sort of thing (along with a lot of other things, like spam and AV filtering, advanced delivery logging, etc.). It's a bit of a learning curve, but once scaled, is a very powerful tool. It also has the benefit that it can be a dispatch table, of sorts, and call different scripts based on different contents or subjects or whatever, and provides logging and other stuff reasonably cheaply. And, it provides security via its DROPPRIVS directive. Yep, procmail is a good choice.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.