This is a Haraka plugin that will HTTP POST an incoming email to a remote server. This plugin depends on Redis to store the to: addresses and the URL to transmit the data to.
This is similar to how Google's App Engine handles incoming emails.
- Install docker (http://docker.io)
- Clone haraka-http-forward repo if you haven't already: git clone https://github.com/jplock/haraka-http-forward.git
- Modify config/host_list with the domain(s) that you'd like to receive mail to
- Build: cd haraka-http-forward && docker build .
- Run:
docker run -d <imageid>
redis-cli -p <redisport> set haraka:whatever http://my.server.com
Whenever you receive an email to whatever@domain.com, the plugin with HTTP POST the entire email to http://my.server.com