Accept inbound email on your domain and post it to an HTTP webhook.
docker run -p 25:25 -e DOMAIN=glove.example.com -e URL=https://requestb.in/1bcv6631 thingless/mailglove
-
DOMAIN
is the domain you would like to receive email for. Your should add an A or MX record to your DNS pointing to the server you're running the docker container on. -
URL
is the url to post the parsed email to. The url can contain basic auth credentials. Example:https://user:[email protected]/1bcv6631
-
The email is parsed to JSON and posted to the webhook. You can find an example JSON body here.
- thanks to https://github.com/catatnight/docker-postfix for initial docker container
- thanks to https://github.com/nodemailer/mailparser for a good email parser