mirror of
https://github.com/psla/mailglove.git
synced 2026-11-14 04:58:52 -08:00
Catch inbound mails and POST them to a webhook
- Shell 51.3%
- JavaScript 34.5%
- Dockerfile 14.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .circleci | ||
| assets | ||
| .gitignore | ||
| build.sh | ||
| Dockerfile | ||
| example_post_body.json | ||
| LICENSE | ||
| README.md | ||
mailglove
Accept inbound email on your domain and post it to an HTTP webhook.
Usage
docker run -p 25:25 -e DOMAIN=glove.example.com -e URL=https://requestb.in/1bcv6631 thingless/mailglove
-
DOMAINis 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. -
URLis the url to post the parsed email to. The url can contain basic auth credentials. Example:https://user:password@requestb.in/1bcv6631 -
The email is parsed to JSON and posted to the webhook. You can find an example JSON body here.
Acknowledgments
- thanks to https://github.com/catatnight/docker-postfix for initial docker container
- thanks to https://github.com/nodemailer/mailparser for a good email parser